From 4722bc23002b0751d3840fcac3932419a597573a Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 22 Jan 2024 22:08:06 +0300 Subject: [PATCH] tablenames-fix --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index caf9913..46f0c69 100644 --- a/main.py +++ b/main.py @@ -35,7 +35,7 @@ async def start_up(): inspector = inspect(engine) if not inspector.has_table("notification"): # Create the Notification table - Base.metadata.create_all(bind=engine, tables=[Notification.__table__, NotificationSeen.__table__]) + Base.metadata.create_all(bind=engine, tables=["notification", "notification_seen"]) logger.info("Notification table was created.") else: logger.info("Notification table already exists.")