Skip to content

Commit

Permalink
Database transaction bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thenav56 committed Dec 19, 2024
1 parent 34e386b commit b35cfff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/cap_feed/formats/cap_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b35cfff

Please sign in to comment.