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:
parent
c4730b1596
commit
ac1920d078
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user