Skip to content

Commit

Permalink
Merge pull request #99 from NIAEFEUP/fix/schedule-time-type
Browse files Browse the repository at this point in the history
Fix schedule start time and duration types
  • Loading branch information
Process-ing committed Aug 20, 2024
2 parents 4094561 + 3323140 commit 9f2a23b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/university/controllers/ClassController.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f2a23b

Please sign in to comment.