Skip to content

Commit

Permalink
Add module opening and closing times to API
Browse files Browse the repository at this point in the history
  • Loading branch information
ihalaij1 authored and mikaelGusse committed May 23, 2024
1 parent d6e6326 commit 0bf7b8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions course/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ def __module_to_dict(self, module: ModuleContent, **kwargs) -> Dict[str, Any]:
module.opening_time,
module.closing_time,
),
'reading_opening_time': module.reading_opening_time,
'opening_time': module.opening_time,
'closing_time': module.closing_time,
}
module_dictionary['exercises'] = self.__recurse_exercises(module, [])
return module_dictionary
Expand Down

0 comments on commit 0bf7b8b

Please sign in to comment.