From 017f14fe0b92cae05401003598afb38ed860eef4 Mon Sep 17 00:00:00 2001 From: Chris Ford Date: Fri, 21 Feb 2014 19:09:57 +0000 Subject: [PATCH] Fixed bad naming. --- edtrac_project/rapidsms_edtrac/education/results.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edtrac_project/rapidsms_edtrac/education/results.py b/edtrac_project/rapidsms_edtrac/education/results.py index 7c49170a..6c9a1b49 100644 --- a/edtrac_project/rapidsms_edtrac/education/results.py +++ b/edtrac_project/rapidsms_edtrac/education/results.py @@ -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