Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleith committed Nov 28, 2024
1 parent a890ce1 commit 5e61b91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/main/views/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,13 +798,13 @@ def check_messages(service_id, template_id, upload_id, row_index=2):
data["recipients_remaining_messages"] = remaining_email_this_year
data["send_exceeds_annual_limit"] = True
else:
data["send_exceeds_daily_limit"] = data["recipients"].sms_fragment_count > data["sms_parts_remaining"]
data["send_exceeds_daily_limit"] = data["recipients"].sms_fragment_count > data["sms_parts_remaining"]
else:
if remaining_sms_this_year < data["count_of_recipients"]:
data["recipients_remaining_messages"] = remaining_sms_this_year
data["send_exceeds_annual_limit"] = True
else:
data["send_exceeds_daily_limit"] = data["recipients"].sms_fragment_count > data["sms_parts_remaining"]
data["send_exceeds_daily_limit"] = data["recipients"].sms_fragment_count > data["sms_parts_remaining"]

if (
data["recipients"].too_many_rows
Expand Down
2 changes: 1 addition & 1 deletion app/notify_client/template_statistics_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def get_template_statistics_for_template(self, service_id, template_id):
return self.get(url="/service/{}/template-statistics/{}".format(service_id, template_id))["data"]



template_statistics_client = TemplateStatisticsApiClient()


class TemplateStatistics:
def __init__(self, stats):
self.stats = stats
Expand Down
1 change: 1 addition & 0 deletions gunicorn_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
# Start timer for total running time
start_time = time.time()


def on_starting(server):
server.log.info("Starting Notifications Admin")

Expand Down

0 comments on commit 5e61b91

Please sign in to comment.