Commit 0ba64f7b by Piotr Mitros

Fix for init bug from refactor

parent c1f4e987
...@@ -169,6 +169,10 @@ class RateXBlock(XBlock): ...@@ -169,6 +169,10 @@ class RateXBlock(XBlock):
""" """
Handle voting Handle voting
""" """
# prompt_choice is initialized by student view.
# Ideally, we'd break this out into a function.
prompt = self.get_prompt(self.prompt_choice)
# Make sure we're initialized # Make sure we're initialized
if not self.vote_aggregate: if not self.vote_aggregate:
self.vote_aggregate = [0]*len(prompt['mouseovers']) self.vote_aggregate = [0]*len(prompt['mouseovers'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment