blumonilr hace 5 años
padre
commit
6062cf2cd1
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      web/app.py
  2. 0 0
      web/judgement.py

+ 2 - 2
web/app.py

@@ -2,7 +2,7 @@
 import os
 import shutil
 from flask import Flask, request, json
-import judge
+import judgement
 
 app = Flask(__name__)
 
@@ -36,7 +36,7 @@ def judge():
     td_total = len(input_list)
     save_test_cases(input_list, output_list, td_total)
     src_file = save_code(language, code)
-    rst = judge.judge(src_file, 'testcases', td_total, time_limit, memory_limit, language)
+    rst = judgement.judge(src_file, 'testcases', td_total, time_limit, memory_limit, language)
     os.remove(src_file)
     shutil.rmtree('testcases')
     return rst

+ 0 - 0
web/judge.py → web/judgement.py