Skip to content

Commit

Permalink
fixed buying an item
Browse files Browse the repository at this point in the history
  • Loading branch information
clemenstyp committed Mar 19, 2024
1 parent 3173aa0 commit 695d9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SnackBar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ def api_buy():
response.status_code = 400
return response

user_purchase = History(curuser, curitem, curitem.price)
user_purchase = History(user=curuser, item=curitem, price=curitem.price)

db.session.add(user_purchase)
db.session.commit()
Expand Down

0 comments on commit 695d9b7

Please sign in to comment.