Skip to content
Permalink
Browse files

Remove typecastng returned answers to empty list, if they're null

  • Loading branch information...
sebinthomas committed Jan 24, 2017
1 parent 5d0bebd commit fc55e4bd84d3d0ec4318b48ec76ce3cbb636077f
Showing with 0 additions and 2 deletions.
  1. +0 −2 stormtrooper/tasker/models.py
@@ -230,8 +230,6 @@ def compute_answer(self, answers, is_best_of):
# performs a transformation on answers, that info would be lost when
# trying to count votes separately
answer, votes = plugin.process(answers)
if answer in EMPTY_VALUES:
answer = []
computed = True
else:
answers = [ans for ans in get_plugin(self.task.answer_plugin).process(answers) if ans not in EMPTY_VALUES]

0 comments on commit fc55e4b

Please sign in to comment.
You can’t perform that action at this time.