Commit c3047c7d by David Ormsbee

Merge pull request #1068 from MITx/bugfix/victor/dashboard

oops.  used wrong variable name.
parents 6858affe cd8ab6ba
...@@ -184,7 +184,7 @@ def _cert_info(user, course, cert_status): ...@@ -184,7 +184,7 @@ def _cert_info(user, course, cert_status):
if 'download_url' not in cert_status: if 'download_url' not in cert_status:
log.warning("User %s has a downloadable cert for %s, but no download url", log.warning("User %s has a downloadable cert for %s, but no download url",
user.username, course.id) user.username, course.id)
return default_status return default_info
else: else:
d['download_url'] = cert_status['download_url'] d['download_url'] = cert_status['download_url']
...@@ -193,7 +193,7 @@ def _cert_info(user, course, cert_status): ...@@ -193,7 +193,7 @@ def _cert_info(user, course, cert_status):
# Note: as of 11/20/2012, we know there are students in this state-- cs169.1x, # Note: as of 11/20/2012, we know there are students in this state-- cs169.1x,
# who need to be regraded (we weren't tracking 'notpassing' at first). # who need to be regraded (we weren't tracking 'notpassing' at first).
# We can add a log.warning here once we think it shouldn't happen. # We can add a log.warning here once we think it shouldn't happen.
return default_status return default_info
else: else:
d['grade'] = cert_status['grade'] d['grade'] = cert_status['grade']
......
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