Apply @ndl's patches
The patches fix the issue where syncing across different profiles will always trigger a full sync if there's any change in either of the profiles.
This commit is contained in:
@@ -59,7 +59,7 @@ class CollectionWrapper(object):
|
||||
else:
|
||||
raise
|
||||
|
||||
col = anki.storage.Collection(self.path)
|
||||
col = anki.storage.Collection(self.path, server=True)
|
||||
|
||||
# Do any special setup
|
||||
if self.setup_new_collection is not None:
|
||||
@@ -71,7 +71,7 @@ class CollectionWrapper(object):
|
||||
"""Open the collection, or create it if it doesn't exist."""
|
||||
if self.__col is None:
|
||||
if os.path.exists(self.path):
|
||||
self.__col = anki.storage.Collection(self.path)
|
||||
self.__col = anki.storage.Collection(self.path, server=True)
|
||||
else:
|
||||
self.__col = self.__create_collection()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user