Fix empty Stampbook awards page

This commit is contained in:
Ben 2020-06-05 22:46:26 +01:00
parent a8aa61e8be
commit b8130a12fd

View File

@ -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)