From e70bf8d38485cbf03e671ed093608c381c5d7317 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 4 May 2020 00:48:32 +0100 Subject: [PATCH] Correct `puffle_id` attribute name --- houdini/handlers/redemption/code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/redemption/code.py b/houdini/handlers/redemption/code.py index 655e415..796270a 100644 --- a/houdini/handlers/redemption/code.py +++ b/houdini/handlers/redemption/code.py @@ -262,6 +262,6 @@ async def handle_redeem_puffle(p, name: str, puffle_type: int): puffle = await p.puffles.insert(puffle_id=puffle_type, name=name) await p.add_puffle_item(p.server.puffle_items[3], quantity=5, cost=0) await p.add_puffle_item(p.server.puffle_items[79], cost=0) - await p.add_puffle_item(p.server.puffle_items[p.server.puffles[puffle.id].favourite_toy]) + await p.add_puffle_item(p.server.puffle_items[p.server.puffles[puffle.puffle_id].favourite_toy]) await p.add_inbox(p.server.postcards[111], details=puffle.name) await p.send_xt('rsp', 1)