Skip to content

Commit

Permalink
Make SyncMediaHandler not inherit anki.sync.MediaSyncer
Browse files Browse the repository at this point in the history
All endpoints are implemented in the child class now, so there's
no need to use any code from the parent class.
  • Loading branch information
tsudoko committed Jan 4, 2020
1 parent c4730b1 commit ac1920d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ankisyncd/sync_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def getTags(self):
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):
Expand Down

0 comments on commit ac1920d

Please sign in to comment.