From b3bd93d71c2747a788d160cbaf56b97596c32fdc Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Fri, 14 Feb 2025 21:39:10 +0000 Subject: [PATCH] Only have one db.create_all(), and that in dbmanager --- app/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models.py b/app/models.py index 517fc44..ee3a1b4 100644 --- a/app/models.py +++ b/app/models.py @@ -36,7 +36,6 @@ if DATABASE_URL is None: if "unittest" in sys.modules and "sqlite" not in DATABASE_URL: raise ValueError("Unit tests running on non-Sqlite database") db = DatabaseManager.get_instance(DATABASE_URL, engine_options=Config.ENGINE_OPTIONS).db -db.create_all() # Database classes