From 1bf175d1101cb854ea93380e7aadb92578a316ad Mon Sep 17 00:00:00 2001 From: flavia-vic Date: Wed, 30 Apr 2025 14:40:02 -0400 Subject: [PATCH] Add description and tolerance fields to shift listing response --- routes/shift.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routes/shift.py b/routes/shift.py index 07aaec8..2889460 100644 --- a/routes/shift.py +++ b/routes/shift.py @@ -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': [