feat: set owned field to true by default when adding a game

This commit is contained in:
Manuel Weiser 2024-09-03 10:17:44 +02:00
parent 0f8801fa1e
commit e34d9270e9

View File

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