Removed call to load method of anki.collection.Collection

This method was removed in
a2b7a3084131f747fb476cc8a24f96a00c654859
This commit is contained in:
Karsten Lehmann 2020-08-26 18:27:05 +02:00
parent 3857f15c06
commit b566e32597
No known key found for this signature in database
GPG Key ID: 6C34E8199743C270

View File

@ -2,6 +2,7 @@
import os
from sqlite3 import dbapi2 as sqlite
import sys
import anki.db
@ -28,7 +29,6 @@ class FullSyncManager:
os.replace(temp_db_path, session.get_collection_path())
finally:
col.reopen()
col.load()
return "OK"
@ -39,7 +39,6 @@ class FullSyncManager:
data = open(session.get_collection_path(), 'rb').read()
finally:
col.reopen()
col.load()
return data