Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbahrai committed Dec 2, 2024
1 parent f8e35b1 commit 10cec63
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/notifications/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ def check_email_annual_limit(service: Service, requested_emails=0):
current_app.logger.info(
f"Service {service.id} reached 80% of their annual email limit of {service.email_annual_limit} messages. Sending annual limit usage warning email."
)
send_near_annual_limit_warning_email(service, "email", int(emails_sent_today + emails_sent_this_fiscal), current_fiscal_year + 1)
send_near_annual_limit_warning_email(
service, "email", int(emails_sent_today + emails_sent_this_fiscal), current_fiscal_year + 1
)

return

Expand Down Expand Up @@ -263,7 +265,9 @@ def check_sms_annual_limit(service: Service, requested_sms=0):
current_app.logger.info(
f"Service {service.id} reached 80% of their annual SMS limit of {service.sms_annual_limit} messages. Sending annual limit usage warning email."
)
send_near_annual_limit_warning_email(service, "email", int(sms_sent_today + sms_sent_this_fiscal), current_fiscal_year + 1)
send_near_annual_limit_warning_email(
service, "email", int(sms_sent_today + sms_sent_this_fiscal), current_fiscal_year + 1
)

return

Expand Down

0 comments on commit 10cec63

Please sign in to comment.