Commit 382d4d70 by Vik Paruchuri

Minor parsing fix, remove b tag from selectors

parent 9e5eca14
...@@ -50,7 +50,7 @@ class CombinedOpenEndedRubric(object): ...@@ -50,7 +50,7 @@ class CombinedOpenEndedRubric(object):
success = False success = False
try: try:
rubric_categories = self.extract_categories(rubric_xml) rubric_categories = self.extract_categories(rubric_xml)
if score_list: if score_list and len(score_list)==len(rubric_categories):
for i in xrange(0,len(rubric_categories)): for i in xrange(0,len(rubric_categories)):
category = rubric_categories[i] category = rubric_categories[i]
for j in xrange(0,len(category['options'])): for j in xrange(0,len(category['options'])):
......
...@@ -4,7 +4,7 @@ class @Rubric ...@@ -4,7 +4,7 @@ class @Rubric
# finds the scores for each rubric category # finds the scores for each rubric category
@get_score_list: () => @get_score_list: () =>
# find the number of categories: # find the number of categories:
num_categories = $('span.rubric-category').length num_categories = $('.rubric-category').length
score_lst = [] score_lst = []
# get the score for each one # get the score for each one
...@@ -23,7 +23,7 @@ class @Rubric ...@@ -23,7 +23,7 @@ class @Rubric
@check_complete: () -> @check_complete: () ->
# check to see whether or not any categories have not been scored # check to see whether or not any categories have not been scored
num_categories = $('span.rubric-category').length num_categories = $('.rubric-category').length
for i in [0..(num_categories-1)] for i in [0..(num_categories-1)]
score = $("input[name='score-selection-#{i}']:checked").val() score = $("input[name='score-selection-#{i}']:checked").val()
if score == undefined if score == undefined
......
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