Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRogelio Mita <rogeliomita@activitycentral.com>2013-06-13 15:07:32 (GMT)
committer Rogelio Mita <rogeliomita@activitycentral.com>2013-06-13 15:07:32 (GMT)
commit755185811e1881fa3300b415f0570d0b01eff84a (patch)
tree7b1497c29d46d44be7cdafe8ff8cbc991afb9fd7
parentd9857caa499ddde64b268852053561cb4a7e7820 (diff)
PEP8 safe
-rw-r--r--webapp/polls/models.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/webapp/polls/models.py b/webapp/polls/models.py
index 75d75a0..66c8e25 100644
--- a/webapp/polls/models.py
+++ b/webapp/polls/models.py
@@ -1244,9 +1244,11 @@ class PollResult(AbstractObject):
answer = data_preg['answer']
if len(answer) and widget_type in ONLY_ANSWER:
if widget_type == "TextInput":
- aux[name] = str(answer.values()[0].get("text", "-"))
+ aux[name] = str(
+ answer.values()[0].get("text", "-"))
else:
- aux[name] = str(answer.values()[0].get("weight", "-"))
+ aux[name] = str(
+ answer.values()[0].get("weight", "-"))
elif len(answer) and widget_type in MANY_ANSWERS:
for opt_id, opt_value in answer.iteritems():
aux[opt_id] = str(opt_value.get("weight", "-"))