fix 500 error

master
Aevann 2024-04-17 14:58:25 +02:00
parent 3c16bdc254
commit 34deaff535
1 changed files with 2 additions and 1 deletions

View File

@ -243,7 +243,8 @@ def award_thing(v, thing_type, id):
msg = f"{safe_username} under the effect of a deflector award; your {award_title} award{s} {has} been deflected back to you but your deflector protected you, the award{s} bounced back and forth until {it} vaporized!"
send_repeatable_notification(v.id, msg)
g.db.delete(award)
for award in awards:
g.db.delete(award)
return {"message": f"{quantity} {award_title} award{s} given to {thing_type} successfully!"}