Skip to content

Commit

Permalink
Fix argument (#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Nov 5, 2024
1 parent 046a030 commit 3527e6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jobs/payment-jobs/invoke_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ def run(job_name, argument=None):
UnpaidInvoiceNotifyTask.notify_unpaid_invoices()
application.logger.info("<<<< Completed Sending notification for OB invoices >>>>")
case "STATEMENTS_DUE":
action_override = argument[0] if len(argument) >= 1 else None
date_override = argument[1] if len(argument) >= 2 else None
auth_account_override = argument[2] if len(argument) >= 3 else None
action_override = argument[0] if argument and len(argument) >= 1 else None
date_override = argument[1] if argument and len(argument) >= 2 else None
auth_account_override = argument[2] if argument and len(argument) >= 3 else None

application.logger.info(f"{action_override} {date_override} {auth_account_override}")
EFTStatementDueTask.process_unpaid_statements(
Expand Down

0 comments on commit 3527e6e

Please sign in to comment.