From 7780d6c190c5c534872f8d3cf1ba6f6b5bee72c6 Mon Sep 17 00:00:00 2001 From: TLSM Date: Fri, 16 Sep 2022 04:59:15 -0400 Subject: [PATCH] Amend f1153031cc53: typo'd an identifier. --- files/routes/hats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/hats.py b/files/routes/hats.py index e5105723b5..88f623fb35 100644 --- a/files/routes/hats.py +++ b/files/routes/hats.py @@ -54,7 +54,7 @@ def buy_hat(v, hat_id): hat.author.procoins += hat.price * 0.1 currency = "marseybux" else: - charged = v.charge_account('coins', price) + charged = v.charge_account('coins', hat.price) if not charged: return {"error": "Not enough coins."}, 400