Skip to content

Commit

Permalink
Update server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Dong123 committed Jun 4, 2024
1 parent 31ab7fa commit 3bc168c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
TokenVerificationFailed,
)
from judge_client import JudgeClient
from languages import OptionType, lang_map, cpp_lang_spj_compile, cpp_lang_spj_config, CPPSPJConfig
from languages import OptionType, lang_map, cpp_lang_spj_compile, cpp_lang_spj_config, CppConfig, CPPSPJConfig
from utils import ProblemIOMode, logger, server_info, token

app = Flask(__name__)
Expand Down Expand Up @@ -258,7 +258,7 @@ def compile_spj(cls, spj_version, src, spj_compile_config=cpp_lang_spj_compile):
# 语言编译设置用BaseLanguageConfig类型, 不使用字典传参
try:
exe_path = Compiler().compile(
language_config=CPPSPJConfig,
language_config=CPPSPJConfig(),
src_path=spj_src_path,
output_dir=SPJ_EXE_DIR,
)
Expand Down

0 comments on commit 3bc168c

Please sign in to comment.