From 42566315834ba5505db4e910b7d30b3d47c80396 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 16 Oct 2020 16:04:14 +0200 Subject: [PATCH] Add ankisyncd config --- .../share/Anki2/addons21/ankisyncd/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 home/.local/share/Anki2/addons21/ankisyncd/__init__.py diff --git a/home/.local/share/Anki2/addons21/ankisyncd/__init__.py b/home/.local/share/Anki2/addons21/ankisyncd/__init__.py new file mode 100644 index 0000000..c59c60c --- /dev/null +++ b/home/.local/share/Anki2/addons21/ankisyncd/__init__.py @@ -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)