Add description and tolerance fields to shift listing response
This commit is contained in:
parent
9daa2ea317
commit
1bf175d110
@ -106,6 +106,9 @@ def list_shifts():
|
|||||||
"interval_end": shift.interval_end.strftime("%H:%M") if shift.interval_end else None,
|
"interval_end": shift.interval_end.strftime("%H:%M") if shift.interval_end else None,
|
||||||
'type_interval': shift.type_interval,
|
'type_interval': shift.type_interval,
|
||||||
'service_instance_id': shift.service_instance_id,
|
'service_instance_id': shift.service_instance_id,
|
||||||
|
'description': shift.description, # Adicionando a descrição
|
||||||
|
'tolerance': shift.tolerance, # Adicionando a tolerância
|
||||||
|
|
||||||
|
|
||||||
# Adicionando os dias associados (TimeSchedules)
|
# Adicionando os dias associados (TimeSchedules)
|
||||||
'time_schedules': [
|
'time_schedules': [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user