From e34d9270e9f11b442a07600c0af7bb3a7f1e7840 Mon Sep 17 00:00:00 2001 From: "Manuel Weiser (aider)" Date: Tue, 3 Sep 2024 10:17:44 +0200 Subject: [PATCH] feat: set owned field to true by default when adding a game --- game_collection/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game_collection/app.py b/game_collection/app.py index 5fcd757..d51edee 100644 --- a/game_collection/app.py +++ b/game_collection/app.py @@ -30,7 +30,7 @@ def add_game(): title=data['title'], date=datetime.now().strftime('%Y-%m-%d'), # Set current date buyer=buyer_username, # Set buyer as the authenticated user's username - owned=data['owned'] + owned=True # Set owned to True by default ) db.session.add(new_game) db.session.commit()