From b35cfff6aa02576b6564cdeb79e65b536716ceca Mon Sep 17 00:00:00 2001 From: thenav56 Date: Thu, 19 Dec 2024 11:16:59 +0545 Subject: [PATCH] Database transaction bug fix --- 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: