From b566e3259758857e74b137eb7b115af2a2523c4b Mon Sep 17 00:00:00 2001 From: Karsten Lehmann Date: Wed, 26 Aug 2020 18:27:05 +0200 Subject: [PATCH] Removed call to load method of anki.collection.Collection This method was removed in a2b7a3084131f747fb476cc8a24f96a00c654859 --- src/ankisyncd/full_sync.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ankisyncd/full_sync.py b/src/ankisyncd/full_sync.py index 9044abd..5d6a5cc 100644 --- a/src/ankisyncd/full_sync.py +++ b/src/ankisyncd/full_sync.py @@ -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