From d8cf7791054e853579abb9f10978bc3344e88d58 Mon Sep 17 00:00:00 2001 From: dobefore <1432338032@qq.com> Date: Mon, 7 Feb 2022 14:05:58 +0800 Subject: [PATCH] modification to sync.py add a guard case to def finish remove redundant blank line of def sanityCheck --- src/ankisyncd/sync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ankisyncd/sync.py b/src/ankisyncd/sync.py index 4e49e81..9c45e40 100644 --- a/src/ankisyncd/sync.py +++ b/src/ankisyncd/sync.py @@ -120,7 +120,6 @@ select id from notes where mid = ?) limit 1""" return True def sanityCheck(self): - tables=["cards", "notes", "revlog", @@ -161,8 +160,9 @@ select id from notes where mid = ?) limit 1""" self.set_last_sync(now) self.increment_usn() self.col.save() - # now is None not happen - return now + return now + # even though that now is None will not happen,have to match a gurad case + return None # Chunked syncing ##########################################################################