Add ankisyncd config
This commit is contained in:
parent
fae5102519
commit
4256631583
13
home/.local/share/Anki2/addons21/ankisyncd/__init__.py
Normal file
13
home/.local/share/Anki2/addons21/ankisyncd/__init__.py
Normal 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)
|
Reference in a new issue