From 34deaff535b84fe251df1c7f07599eaa58b42d60 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 17 Apr 2024 14:58:25 +0200 Subject: [PATCH] fix 500 error --- files/routes/awards.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index f9c567136..3677ee6a0 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -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!"}