From b8130a12fd203087c1b17d51657c8b868518a215 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 5 Jun 2020 22:46:26 +0100 Subject: [PATCH] Fix empty Stampbook awards page --- houdini/handlers/play/item.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/houdini/handlers/play/item.py b/houdini/handlers/play/item.py index 8d2a67d..c883c05 100644 --- a/houdini/handlers/play/item.py +++ b/houdini/handlers/play/item.py @@ -32,7 +32,7 @@ async def get_awards_string(p, player_id): inventory = await PenguinItemCollection.get_collection(player_id) awards = [str(award) for award in inventory.keys() if p.server.items[award].is_award()] - return '%'.join(awards) + return '|'.join(awards) @handlers.boot @@ -99,4 +99,4 @@ async def handle_query_player_awards(p, player_id: int): string = p.server.cache.get(f'awards.{player_id}') string = await get_awards_string(p, player_id) if string is None else string p.server.cache.set(f'awards.{player_id}', string) - await p.send_xt('qpa', string) + await p.send_xt('qpa', player_id, string)