blumonilr 5 năm trước cách đây
mục cha
commit
b0559f7755
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      web/app.py

+ 1 - 1
web/app.py

@@ -37,7 +37,7 @@ def judge():
     save_test_cases(input_list, output_list, td_total)
     src_file = save_code(language, code)
     rst = judgement.judge(src_file, 'testcases', td_total, time_limit, memory_limit, language)
-    os.remove(src_file.name)
+    os.remove(src_file)
     shutil.rmtree('testcases')
     return rst