Remove media patch, put usnLim in server code

Since dae/anki@d6874de8, usnLim always returns -1 regardless of the
`server` attribute.

Reference: d6874de8c8
This commit is contained in:
flan
2018-08-20 15:44:10 +02:00
parent c4fad436c1
commit a83e68412d
3 changed files with 5 additions and 31 deletions

View File

@@ -91,6 +91,9 @@ class SyncCollectionHandler(anki.sync.Syncer):
'cont': True,
}
def usnLim(self):
return "usn >= %d" % self.minUsn
class SyncMediaHandler(anki.sync.MediaSyncer):
operations = ['begin', 'mediaChanges', 'mediaSanity', 'uploadChanges', 'downloadFiles']