From 8345ac4e64fb392a012fde42e41475bf0e4f916d Mon Sep 17 00:00:00 2001 From: "Manuel Weiser (aider)" Date: Mon, 2 Sep 2024 09:42:47 +0200 Subject: [PATCH] fix: correct table name in Game model to 'games' to resolve OperationalError --- game_collection/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/game_collection/models.py b/game_collection/models.py index 5a4406d..a693407 100644 --- a/game_collection/models.py +++ b/game_collection/models.py @@ -3,6 +3,7 @@ from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class Game(db.Model): + __tablename__ = 'games' # Ensure the table name is set to 'games' id = db.Column(db.Integer, primary_key=True) image = db.Column(db.String(255)) title = db.Column(db.String(100), nullable=False)