feat: show orders per stall

This commit is contained in:
Vlad Stan 2023-03-07 10:31:25 +02:00
parent b446629707
commit 40c25ad085
10 changed files with 255 additions and 29 deletions

View file

@ -127,9 +127,6 @@ async def handle_new_order(order: PartialOrder):
### check that event_id not parsed already
order.validate_order()
assert (
len(order.items) != 0
), f"Order has no items. Order: '{order.id}' ({order.event_id})"
first_product_id = order.items[0].product_id
wallet_id = await get_wallet_for_product(first_product_id)