From 332314028fff3da5592cb73bc74245594e91474e Mon Sep 17 00:00:00 2001 From: Process-ing Date: Tue, 20 Aug 2024 17:42:44 +0100 Subject: [PATCH] Fix schedule start time and duration types --- django/university/controllers/ClassController.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/university/controllers/ClassController.py b/django/university/controllers/ClassController.py index 2670ec6..45c2461 100644 --- a/django/university/controllers/ClassController.py +++ b/django/university/controllers/ClassController.py @@ -15,8 +15,8 @@ def get_professors(slot_obj): 'id': slot_obj.id, 'lesson_type': slot_obj.lesson_type, 'day': slot_obj.day, - 'start_time': slot_obj.start_time, - 'duration': slot_obj.duration, + 'start_time': float(slot_obj.start_time), + 'duration': float(slot_obj.duration), 'location': slot_obj.location, 'is_composed': slot_obj.is_composed, 'professors': professors