From ac1920d0786725b3e6a3f23b52cd986ca6b13c7b Mon Sep 17 00:00:00 2001 From: flan Date: Sun, 29 Dec 2019 20:50:47 +0100 Subject: [PATCH] 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. --- ankisyncd/sync_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankisyncd/sync_app.py b/ankisyncd/sync_app.py index c6b8b8a..e2666e1 100644 --- a/ankisyncd/sync_app.py +++ b/ankisyncd/sync_app.py @@ -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):