Commit 5f5f56bb by Carlos Andrés Rocha

Fix syntax on dashboard template

parent 8c2cbede
......@@ -149,7 +149,7 @@ def dashboard(request):
# TODO: workaround to not have to zip courses and certificates in the template
# since before there is a migration to certificates
if settings.MITX_FEATURES.get('CERTIFICATES_ENABLED'):
cert_statuses = {(course.id, certificate_status_for_student(request.user, course.id)) for course in courses}
cert_statuses = { course.id: certificate_status_for_student(request.user, course.id) for course in courses}
else:
cert_statuses = {}
......
......@@ -157,7 +157,7 @@
<%
cert_status = cert_statuses.get(course.id)
%>
% if course.has_ended and cert_status:
% if course.has_ended() and cert_status:
<%
passing_grade = False
cert_button = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment