Removed call to load method of anki.collection.Collection
This method was removed in a2b7a3084131f747fb476cc8a24f96a00c654859
This commit is contained in:
parent
3857f15c06
commit
b566e32597
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
from sqlite3 import dbapi2 as sqlite
|
from sqlite3 import dbapi2 as sqlite
|
||||||
|
import sys
|
||||||
|
|
||||||
import anki.db
|
import anki.db
|
||||||
|
|
||||||
@ -28,7 +29,6 @@ class FullSyncManager:
|
|||||||
os.replace(temp_db_path, session.get_collection_path())
|
os.replace(temp_db_path, session.get_collection_path())
|
||||||
finally:
|
finally:
|
||||||
col.reopen()
|
col.reopen()
|
||||||
col.load()
|
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
|
|
||||||
@ -39,7 +39,6 @@ class FullSyncManager:
|
|||||||
data = open(session.get_collection_path(), 'rb').read()
|
data = open(session.get_collection_path(), 'rb').read()
|
||||||
finally:
|
finally:
|
||||||
col.reopen()
|
col.reopen()
|
||||||
col.load()
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user