diff --git a/dojo_plugin/pages/course.py b/dojo_plugin/pages/course.py index a77c9b732..298820325 100644 --- a/dojo_plugin/pages/course.py +++ b/dojo_plugin/pages/course.py @@ -217,7 +217,7 @@ def view_course(dojo, resource=None): user = get_current_user() name = "Your" - ignore_pending = bool(request.args.get("ignore_pending")) + ignore_pending = request.args.get("ignore_pending") is not None grades = {} identity = {} @@ -302,7 +302,7 @@ def view_all_grades(dojo): if not dojo.is_admin(): abort(403) - ignore_pending = bool(request.args.get("ignore_pending")) + ignore_pending = request.args.get("ignore_pending") is not None users = ( Users