Skip to content

Commit

Permalink
create a new database after saving
Browse files Browse the repository at this point in the history
  • Loading branch information
JBlaschke committed Jan 24, 2021
1 parent 19f52c6 commit e5d22e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions callmonitor/__init__.py
Expand Up @@ -33,7 +33,7 @@

def save_db():
if CONTEXT.initialized:
CONTEXT.db.lock()
save(CONTEXT.db)
# Context().new() saves the db before creating a new one
CONTEXT.new()

register(save_db)

0 comments on commit e5d22e1

Please sign in to comment.