From ff9402fbc85a1ae94ba35bac784229afa5a9539f Mon Sep 17 00:00:00 2001 From: Jacob Pan Date: Thu, 7 Jul 2022 18:29:45 -0400 Subject: [PATCH] Popped max_weekly when still needed SQL Database stores max_weekly but it is popped. BCK-7001 --- alerts_backend/python/app.py | 1 - 1 file changed, 1 deletion(-) diff --git a/alerts_backend/python/app.py b/alerts_backend/python/app.py index 731af4a..cc6852c 100644 --- a/alerts_backend/python/app.py +++ b/alerts_backend/python/app.py @@ -140,7 +140,6 @@ def create_alert() -> Response: data["diverted"] = data["events"]["diverted"] data["filed"] = data["events"]["filed"] data.pop("events") - data.pop("max_weekly") # Rename dates to avoid sql keyword "end" issue, and also change to Python datetime.datetime() # Default to None in case a user directly submits an incomplete payload data["start_date"] = data.pop("start", None)