We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 112da7c commit 1a5f8eaCopy full SHA for 1a5f8ea
1 file changed
dbsync.py
@@ -536,6 +536,10 @@ def _get_mergin_project(work_path) -> MerginProject:
536
"""
537
if work_path not in cached_mergin_project_objects:
538
cached_mergin_project_objects[work_path] = MerginProject(work_path)
539
+ # Clear metadata so we re-read the state.
540
+ # This is needed since otherwise we can have multiple MerginProject
541
+ # instances of the same workpath with different state.
542
+ cached_mergin_project_objects[work_path]._metadata = None
543
cached_mergin_project_objects[work_path]._read_metadata()
544
return cached_mergin_project_objects[work_path]
545
0 commit comments