Fix problem code change bug

This commit is contained in:
cuom1999 2023-10-27 18:02:02 -05:00
parent b053c43b19
commit 7a05ad1c3b
6 changed files with 23 additions and 8 deletions

View file

@ -195,8 +195,8 @@ def get_cases_data(submission):
continue
count += 1
problem_data[count] = {
"input": case_data[case.input_file] if case.input_file else "",
"answer": case_data[case.output_file] if case.output_file else "",
"input": case_data.get(case.input_file, "") if case.input_file else "",
"answer": case_data.get(case.output_file, "") if case.output_file else "",
}
return problem_data