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()