Skip to content

Commit f4eb095

Browse files
Fixed bug when a case overlaps with the default case
If a case overlapped with the default case the default case now takes priority.
1 parent 16a2298 commit f4eb095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/commands.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def evaluate(event: JsonType) -> Response:
129129

130130
result = evaluation_function(body["response"], body["answer"], params)
131131

132-
if "cases" in params and len(params["cases"]) > 0:
132+
if result["is_correct"] is False and "cases" in params and len(params["cases"]) > 0:
133133
match, warnings = get_case_feedback(
134134
body["response"], params, params["cases"]
135135
)

0 commit comments

Comments
 (0)