Update asset_submissions.py

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-10 15:46:56 +02:00 committed by GitHub
parent f653b25555
commit 89ab532425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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