Skip to content

Commit

Permalink
Fix schedule start time and duration types
Browse files Browse the repository at this point in the history
  • Loading branch information
Process-ing committed Aug 20, 2024
1 parent 4094561 commit 3323140
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 3323140

Please sign in to comment.