forked from MarseyWorld/MarseyWorld
Update asset_submissions.py
parent
f653b25555
commit
89ab532425
|
@ -251,6 +251,7 @@ def approve_hat(v, name):
|
|||
if not description_regex.fullmatch(description):
|
||||
return {"error": "Invalid description!"}, 400
|
||||
|
||||
hat.price = int(request.values.get('price'))
|
||||
hat.name = new_name
|
||||
hat.description = description
|
||||
g.db.add(hat)
|
||||
|
|
Loading…
Reference in New Issue