mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
Fix empty Stampbook awards page
This commit is contained in:
parent
a8aa61e8be
commit
b8130a12fd
@ -32,7 +32,7 @@ async def get_awards_string(p, player_id):
|
|||||||
inventory = await PenguinItemCollection.get_collection(player_id)
|
inventory = await PenguinItemCollection.get_collection(player_id)
|
||||||
|
|
||||||
awards = [str(award) for award in inventory.keys() if p.server.items[award].is_award()]
|
awards = [str(award) for award in inventory.keys() if p.server.items[award].is_award()]
|
||||||
return '%'.join(awards)
|
return '|'.join(awards)
|
||||||
|
|
||||||
|
|
||||||
@handlers.boot
|
@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 = p.server.cache.get(f'awards.{player_id}')
|
||||||
string = await get_awards_string(p, player_id) if string is None else string
|
string = await get_awards_string(p, player_id) if string is None else string
|
||||||
p.server.cache.set(f'awards.{player_id}', string)
|
p.server.cache.set(f'awards.{player_id}', string)
|
||||||
await p.send_xt('qpa', string)
|
await p.send_xt('qpa', player_id, string)
|
||||||
|
Loading…
Reference in New Issue
Block a user