From 86e698271c2f6d24136888984d920566dfb8badb Mon Sep 17 00:00:00 2001 From: magowiz Date: Sat, 18 Dec 2021 12:54:09 +0100 Subject: [PATCH] add intermediate variable since aerich doesn't play nice with functions as configuration entrypoint --- mobilizon_reshare/storage/db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mobilizon_reshare/storage/db.py b/mobilizon_reshare/storage/db.py index 5d13d8e..853cf27 100644 --- a/mobilizon_reshare/storage/db.py +++ b/mobilizon_reshare/storage/db.py @@ -41,6 +41,9 @@ def get_tortoise_orm(): } +TORTOISE_ORM = get_tortoise_orm() + + class MoReDB: def __init__(self, path: Path): self.path = path