Skip to content

Commit

Permalink
Commit after backup
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Sep 4, 2024
1 parent 64d2a09 commit 1bfaea1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oonipipeline/src/oonipipeline/analysis/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def build_from_existing(self, db_str: str):
with sqlite3.connect(db_str) as src_db:
self.db = sqlite3.connect(":memory:")
src_db.backup(self.db)
self.db.commit()

def close(self):
self.db.close()
Expand Down

0 comments on commit 1bfaea1

Please sign in to comment.