Skip to content

Commit

Permalink
rm unused
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimpe committed Oct 9, 2024
1 parent f758860 commit b9128dd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tdrs-backend/tdpservice/data_files/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,6 @@ def download_error_report(self, request, pk=None):
serializer = ParsingErrorSerializer(parser_errors, many=True, context=self.get_serializer_context())
return Response(get_xls_serialized_file(serializer.data))

@action(methods=["post"], detail=False, parser_classes=[JSONParser, MultiPartParser, FormParser])
def run_action_reparse_cmd(self, request, pk=None):
"""Run the reparse command."""
# Need to add the reparsing file ids to the request object
call_command("clean_and_reparse", f"-f {request.data['file_ids']}")
return Response({'status': 'success'})


class GetYearList(APIView):
"""Get list of years for which there are data_files."""
Expand Down

0 comments on commit b9128dd

Please sign in to comment.