Merge branch 'master' into pmitros/dexml

This commit is contained in:
Piotr Mitros
2012-06-01 16:00:48 -04:00
20 changed files with 403 additions and 24 deletions

View File

@@ -76,7 +76,7 @@ def grade_histogram(module_id):
grades = list(cursor.fetchall())
grades.sort(key=lambda x:x[0]) # Probably not necessary
if (len(grades) == 1 and grades[0][0] == None):
if (len(grades) == 1 and grades[0][0] is None):
return []
return grades