Fix /api/orders endpoint

This commit is contained in:
Johnny Gear 2026-03-07 13:40:12 -06:00
parent 27058ce991
commit 14bd8e117b

View file

@ -126,6 +126,8 @@ def my_order_sets():
'time': op.time,
'weekends': op.weekends,
'weekdays': op.weekdays,
'probability': op.probability,
'punishment_pool_name': op.punishment_pool.name if op.punishment_pool is not None else None,
'orders': [{
'id': order.id,
} for order in op.orders]