Skip to content

Commit

Permalink
Fixed bad naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
ctford committed Feb 21, 2014
1 parent 93266dd commit 017f14f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edtrac_project/rapidsms_edtrac/education/results.py
Expand Up @@ -57,8 +57,8 @@ def mode(self):
totals = [(result['eav_values__value_float'], result['frequency'] or 0) for result in results]

if totals:
stage,frequency = max(totals, key=lambda x: x[1])
return stage
value,frequency = max(totals, key=lambda x: x[1])
return value
else:
return 0

Expand Down

0 comments on commit 017f14f

Please sign in to comment.