From fa756c0338db9e2b37c38f0c964cc607ed612ee1 Mon Sep 17 00:00:00 2001 From: Navin Ayer Date: Thu, 19 Dec 2024 12:18:55 +0545 Subject: [PATCH] Database transaction bug fix (#116) --- apps/cap_feed/formats/cap_xml.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/cap_feed/formats/cap_xml.py b/apps/cap_feed/formats/cap_xml.py index b57ee53..a4cc3ca 100644 --- a/apps/cap_feed/formats/cap_xml.py +++ b/apps/cap_feed/formats/cap_xml.py @@ -243,6 +243,8 @@ def process_alert( ) ) + mgr.done() # Make sure everything is saved to DB before we start tagging admin1s + if alert_has_valid_info: # Fallback: Try circles if not tagged_admin1s_id: