Skip to content

Commit

Permalink
Moved email notification outside discrepancy report scope
Browse files Browse the repository at this point in the history
Moved email notification outside discrepancy report scope
  • Loading branch information
blakelong authored Nov 1, 2022
2 parents e6adfa7 + f5c70d7 commit 21504cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions workflow/management/commands/upload_IDAA_programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ def handle(self, *args, **options):
if self.report_date() or options['create_report']:
report = GenerateDiscrepancyReport()
report.generate()
end_time = datetime.now().strftime("%m/%d/%Y, %H:%M:%S")
self.email_notifications(today, start_time, end_time, counts, uploaded_programs, created_countries)

end_time = datetime.now().strftime("%m/%d/%Y, %H:%M:%S")
self.email_notifications(today, start_time, end_time, counts, uploaded_programs, created_countries)

if not options['supress_output']:
print(f"Total IDAA Programs: {counts['total']}")
Expand Down

0 comments on commit 21504cb

Please sign in to comment.