Skip to content

Commit

Permalink
[PRMP-1063] correcting log typo, adding param types to function
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyFlintNHS committed Oct 29, 2024
1 parent 62866aa commit 801e89b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lambdas/services/bulk_upload_report_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def generate_restricted_report(self, ods_reports: list[OdsReport]):
logger.info("Uploading daily restricted report file to S3")
self.write_and_upload_additional_reports(file_name, headers, data_rows)
else:
logger.info("No data to report for daily deceased report file")
logger.info("No data to report for daily restricted report file")

def generate_rejected_report(self, ods_reports: list[OdsReport]):
file_name = (
Expand Down Expand Up @@ -376,7 +376,12 @@ def get_times_for_scan(self) -> tuple[datetime, datetime]:

return start_timestamp, end_timestamp

def write_and_upload_additional_reports(self, file_name, headers, data_rows):
def write_and_upload_additional_reports(
self,
file_name: str,
headers: list[str],
data_rows: list[list[str]],
):
self.write_additional_report_items_to_csv(
file_name=file_name, headers=headers, rows_to_write=data_rows
)
Expand Down

0 comments on commit 801e89b

Please sign in to comment.