Skip to content

Commit 6d288ea

Browse files
Merge pull request #13 from lambda-feedback/tr-40
Fixed bug
2 parents 686c3e2 + 66685ce commit 6d288ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/evaluation.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,17 @@ def evaluation_function(response, answer, params):
9090

9191
remark = ""
9292

93-
onedim_format = lambda x: "Entry "+str(x[1][0])
93+
row_format = lambda x: "Entry "+str(x[1][1])
94+
col_format = lambda x: "Entry "+str(x[1][0])
9495
table_format = lambda x: "Entry on row "+str(x[1][0])+", column "+str(x[1][1])
9596
general_format = lambda x: "Entry ("+"".join([str(i) for i in x[1][0:-1]+","])+str(x[1][-1])+")"
9697

9798
feedback_format = general_format
9899

99100
if all([len(x) == 1 for x in answer]) or all([not isinstance(x,list) for x in answer]):
100-
feedback_format = onedim_format
101+
feedback_format = col_format
101102
elif len(answer) == 1 and all([not isinstance(x,list) for x in answer[0]]):
102-
feedback_format = onedim_format
103+
feedback_format = row_format
103104
elif len(answer) > 1 and\
104105
all([isinstance(elem,list) for elem in answer]) and\
105106
all([len(elem) == len(answer[0]) for elem in answer]):

0 commit comments

Comments
 (0)