Skip to content
Snippets Groups Projects
Commit 4931d602 authored by Simon Künzel's avatar Simon Künzel
Browse files

Fix bug where course stats request did not check existence of course correctly

parent f6bc150e
No related branches found
No related tags found
No related merge requests found
......@@ -329,7 +329,7 @@ def api_route_get_course_stats(course_id: int):
Course.select({
AC_IS_MOD: True
}, [])
.where(Lecture.id == course_id)
.where(Course.id == course_id)
)
if course is None:
raise ApiClientException(ERROR_UNKNOWN_OBJECT)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment