Skip to content

Commit

Permalink
fix: only check for send_exceeds_annual_limit when FF is on
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleith committed Nov 28, 2024
1 parent 35a5805 commit 7f1aeb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/main/views/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,13 @@ def check_messages(service_id, template_id, upload_id, row_index=2):
if data["errors"] or data["trying_to_send_letters_in_trial_mode"]:
return render_template("views/check/column-errors.html", **data)

if data["send_exceeds_daily_limit"] or data["send_exceeds_annual_limit"]:
if data["send_exceeds_daily_limit"]:
return render_template("views/check/column-errors.html", **data)

if current_app.config["FF_ANNUAL_LIMIT"]:
if data["send_exceeds_annual_limit"]:
return render_template("views/check/column-errors.html", **data)

metadata_kwargs = {
"notification_count": data["count_of_recipients"],
"template_id": str(template_id),
Expand Down

0 comments on commit 7f1aeb6

Please sign in to comment.