Skip to content

Commit

Permalink
fix: refresh all objects when database changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Sep 23, 2024
1 parent 5b68d47 commit b22dfaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dooit/api/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def has_changed(self) -> bool:
current_last_modified = self._get_db_last_modified()
if current_last_modified and self._db_last_modified != current_last_modified:
self._db_last_modified = current_last_modified
manager.session.expire_all()
return True
return False

Expand Down

0 comments on commit b22dfaa

Please sign in to comment.