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