additional DBs are loaded indeed

refs #19
This commit is contained in:
boyska 2022-01-17 00:03:48 +01:00
parent 8de4719701
commit dcbb804b94
2 changed files with 2 additions and 1 deletions

View file

@ -19,6 +19,7 @@ def get_conf(prefix="LARIGIRA_"):
conf["UMASK"] = None
conf["CACHING_TIME"] = 10
conf["DB_URI"] = os.path.join(conf_dir, "db.json")
conf["DB_ADDITIONAL_DIR"] = os.path.join(conf_dir, "db.d")
conf["SCRIPTS_PATH"] = os.path.join(conf_dir, "scripts")
conf["EXTRA_STATIC_PATH"] = os.path.join(conf_dir, "extra")
conf["EXTRA_MENU_LINKS"] = []

View file

@ -42,7 +42,7 @@ class Monitor(ParentedLet):
self.running = {}
self.conf = conf
self.q = Queue()
self.model = EventModel(self.conf["DB_URI"])
self.model = EventModel(self.conf["DB_URI"], self.conf['DB_ADDITIONAL_DIR'])
self.ticker = Timer(int(self.conf["EVENT_TICK_SECS"]) * 1000, self.q)
def _alarm_missing_time(self, timespec):