feat: set owned field to true by default when adding a game
This commit is contained in:
parent
0f8801fa1e
commit
e34d9270e9
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user