Add ankisyncd config

master
Simon Bruder 2020-10-16 16:04:14 +02:00
parent fae5102519
commit 4256631583
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
import anki.sync
import anki.hooks
import aqt
anki.sync.SYNC_BASE = "https://anki.sbruder.de/%s"
anki.sync.SYNC_MEDIA_BASE = "https://anki.sbruder.de/msync%s"
def resetHostNum():
aqt.mw.pm.profile["hostNum"] = None
anki.hooks.addHook("profileLoaded", resetHostNum)