Skip to content

Commit

Permalink
dont compute aggregates for section 3/4
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimpe committed Sep 27, 2023
1 parent faffedf commit dd1d02f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tdrs-backend/tdpservice/scheduling/parser_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def parse(data_file_id):
dfs = DataFileSummary.objects.create(datafile=data_file, status=DataFileSummary.Status.PENDING)
errors = parse_datafile(data_file)
dfs.status = dfs.get_status()
dfs.case_aggregates = case_aggregates_by_month(data_file, dfs.status)
dfs.save()

if "Case Data" in data_file.section:
dfs.case_aggregates = case_aggregates_by_month(data_file, dfs.status)
dfs.save()

logger.info(f"Parsing finished for file -> {repr(data_file)} with status {dfs.status} and {len(errors)} errors.")

0 comments on commit dd1d02f

Please sign in to comment.