Add description and tolerance fields to shift listing response

This commit is contained in:
flavia-vic 2025-04-30 14:40:02 -04:00
parent 9daa2ea317
commit 1bf175d110

View File

@ -106,6 +106,9 @@ def list_shifts():
"interval_end": shift.interval_end.strftime("%H:%M") if shift.interval_end else None,
'type_interval': shift.type_interval,
'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)
'time_schedules': [