mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
Fix empty Stampbook pins page
This commit is contained in:
parent
3e543b59cc
commit
a8aa61e8be
@ -15,7 +15,7 @@ async def get_pin_string(p, player_id):
|
||||
inventory = await PenguinItemCollection.get_collection(player_id)
|
||||
|
||||
def is_free_pin(pin):
|
||||
p.server.items[pin].is_flag() and p.server.items[pin].cost == 0
|
||||
return p.server.items[pin].is_flag() and p.server.items[pin].cost == 0
|
||||
free_pins = (p.server.items[pin] for pin in inventory.keys() if is_free_pin(pin))
|
||||
pins = sorted(free_pins, key=operator.attrgetter('release_date'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user