Skip to content

Commit 6257c86

Browse files
Merge pull request #10 from lambda-feedback/tr-40
Fixed bug
2 parents 68b43dc + 2aa5f71 commit 6257c86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/evaluation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ def evaluation_function(response, answer, params):
9696

9797
feedback_format = general_format
9898

99-
if all([not isinstance(item,list) for item in answer]):
99+
if all([len(x) == 1 for x in answer]) or all([not isinstsance(x,list) x in answer]):
100100
feedback_format = onedim_format
101-
elif len(answer) == 1 and all(not isinstance(answer[0],list)):
101+
elif len(answer) == 1 and all([not isinstance(x,list) for x in answer[0]]):
102102
feedback_format = onedim_format
103103
elif len(answer) > 1 and\
104104
all([isinstance(elem,list) for elem in answer]) and\

0 commit comments

Comments
 (0)