Switch to side-by-side view
--- a/OSSEval/analysis/templatetags/custom_tags.py +++ b/OSSEval/analysis/templatetags/custom_tags.py @@ -27,3 +27,10 @@ except: pass return "(" + str(score) + ") <strong>" + instance.name + "</strong>" + +@register.simple_tag +def question_weight(question_id, weight_scenario, *args, **kwargs): + if weight_scenario.question_weight(question_id) != 1: + return " ( * " + str(weight_scenario.question_weight(question_id)) + " )" + else: + return ""