Skip to content

Commit

Permalink
fix send to work without FF too
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleith committed Nov 28, 2024
1 parent 5e61b91 commit e1fe31f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/main/views/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,14 +797,14 @@ def check_messages(service_id, template_id, upload_id, row_index=2):
if remaining_email_this_year < data["count_of_recipients"]:
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"]
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"]
else:
data["send_exceeds_daily_limit"] = data["recipients"].sms_fragment_count > data["sms_parts_remaining"]

if (
data["recipients"].too_many_rows
Expand Down

0 comments on commit e1fe31f

Please sign in to comment.