This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.local/share/Anki2/addons21/ankisyncd/__init__.py

14 lines
274 B
Python
Raw Normal View History

2020-10-16 16:04:14 +02:00
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)