mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
only commit once, rather than for every insert
if we insert a valid row, that'll mean we properly roll back the delete of old data
This commit is contained in:
@@ -108,7 +108,7 @@ def update_fact_notification_status(data, process_day):
|
||||
notification_count=row.notification_count,
|
||||
)
|
||||
db.session.connection().execute(stmt)
|
||||
db.session.commit()
|
||||
db.session.commit()
|
||||
|
||||
|
||||
def fetch_notification_status_for_service_by_month(start_date, end_date, service_id):
|
||||
|
||||
Reference in New Issue
Block a user