Fix /api/orders endpoint
This commit is contained in:
parent
27058ce991
commit
14bd8e117b
1 changed files with 2 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue