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:
@@ -171,7 +171,7 @@ class SyncCollectionHandler(anki.sync.Syncer):
|
|||||||
return [t for t, usn in self.col.tags.allItems()
|
return [t for t, usn in self.col.tags.allItems()
|
||||||
if usn >= self.minUsn]
|
if usn >= self.minUsn]
|
||||||
|
|
||||||
class SyncMediaHandler(anki.sync.MediaSyncer):
|
class SyncMediaHandler:
|
||||||
operations = ['begin', 'mediaChanges', 'mediaSanity', 'uploadChanges', 'downloadFiles']
|
operations = ['begin', 'mediaChanges', 'mediaSanity', 'uploadChanges', 'downloadFiles']
|
||||||
|
|
||||||
def __init__(self, col):
|
def __init__(self, col):
|
||||||
|
|||||||
Reference in New Issue
Block a user