+ elif t == 'edumed_wybor':
+ if exercise.get('answer_mode', None) == 'multi':
+ if not answer:
+ return None
+ # return exercise['points'] if map(int, answer) == exercise['answer'] else 0
+ correct = 0.
+ for i in xrange(1, len(exercise['options']) + 1):
+ if (str(i) in answer) == (i in exercise['answer']):
+ correct += 1
+ points1 = exercise['points'] * correct/len(exercise['options'])
+ points2 = exercise['points'] if map(int, answer) == exercise['answer'] else 0
+ return points1 + points2
+ elif len(exercise['answer']) == 1: