Make SyncMediaHandler not inherit anki.sync.MediaSyncer

All endpoints are implemented in the child class now, so there's
no need to use any code from the parent class.
This commit is contained in:
flan 2019-12-29 20:50:47 +01:00
parent c4730b1596
commit ac1920d078

View File

@ -171,7 +171,7 @@ class SyncCollectionHandler(anki.sync.Syncer):
return [t for t, usn in self.col.tags.allItems()
if usn >= self.minUsn]
class SyncMediaHandler(anki.sync.MediaSyncer):
class SyncMediaHandler:
operations = ['begin', 'mediaChanges', 'mediaSanity', 'uploadChanges', 'downloadFiles']
def __init__(self, col):