mirror of
https://github.com/solero/houdini.git
synced 2024-11-13 22:28:21 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
04e511ed12
@ -210,7 +210,6 @@ async def handle_golden_choice(p, redemption_code: str, choice: int):
|
|||||||
for card in cards:
|
for card in cards:
|
||||||
await p.add_card(p.server.cards[card.card_id])
|
await p.add_card(p.server.cards[card.card_id])
|
||||||
|
|
||||||
if code.uses is None:
|
|
||||||
await PenguinRedemptionCode.create(penguin_id=p.id, code_id=code.id)
|
await PenguinRedemptionCode.create(penguin_id=p.id, code_id=code.id)
|
||||||
|
|
||||||
|
|
||||||
@ -240,7 +239,7 @@ async def handle_send_cart(p, redemption_code: str, choice: str):
|
|||||||
awards.append(choice)
|
awards.append(choice)
|
||||||
await p.add_inventory(p.server.items[int(choice)], notify=False)
|
await p.add_inventory(p.server.items[int(choice)], notify=False)
|
||||||
|
|
||||||
if code.uses is None:
|
if code.uses is not None:
|
||||||
await PenguinRedemptionCode.create(penguin_id=p.id, code_id=code.id)
|
await PenguinRedemptionCode.create(penguin_id=p.id, code_id=code.id)
|
||||||
|
|
||||||
await p.update(coins=p.coins + coins).apply()
|
await p.update(coins=p.coins + coins).apply()
|
||||||
|
Loading…
Reference in New Issue
Block a user