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)