From 07d716749ec03222edd9fe40dcfe861ff0be0b0e Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Sat, 24 Sep 2022 08:47:18 -0400 Subject: [PATCH] Need import for app to instantied correct app instances --- tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks.py b/tasks.py index 1a4ae72..10057bd 100644 --- a/tasks.py +++ b/tasks.py @@ -60,6 +60,8 @@ def add_user(username="", email=""): from project.database import SessionLocal from project.users.models import User + from main import app # pylint: disable=unused-import + session = SessionLocal() user = User(username=username, email=email) session.add(user)