From 316e553681943013337aa3cd3b242637c59cacb6 Mon Sep 17 00:00:00 2001 From: flan Date: Fri, 3 Jan 2020 03:03:21 +0100 Subject: [PATCH] Make comment for SyncCollectionHandler.removed() less confusing --- ankisyncd/sync_app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ankisyncd/sync_app.py b/ankisyncd/sync_app.py index 30a6dbb..faee4cf 100644 --- a/ankisyncd/sync_app.py +++ b/ankisyncd/sync_app.py @@ -137,8 +137,9 @@ class SyncCollectionHandler(anki.sync.Syncer): def finish(self, mod=None): return anki.sync.Syncer.finish(self, anki.utils.intTime(1000)) - # Syncer.removed() doesn't use self.usnLim() in queries, so we have to - # replace "usn=-1" by hand + # This function had to be put here in its entirety because Syncer.removed() + # doesn't use self.usnLim() (which we override in this class) in queries. + # "usn=-1" has been replaced with "usn >= ?", self.minUsn by hand. def removed(self): cards = [] notes = []