Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dbsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,10 @@ def _get_mergin_project(work_path) -> MerginProject:
"""
if work_path not in cached_mergin_project_objects:
cached_mergin_project_objects[work_path] = MerginProject(work_path)
# Clear metadata so we re-read the state.
# This is needed since otherwise we can have multiple MerginProject
# instances of the same workpath with different state.
cached_mergin_project_objects[work_path]._metadata = None
cached_mergin_project_objects[work_path]._read_metadata()
return cached_mergin_project_objects[work_path]

Expand Down