Skip to content

Commit 494f4a6

Browse files
committed
修复无法读取自定义模型的bug
1 parent 3d2ba79 commit 494f4a6

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

4 Bytes
Binary file not shown.

start.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,13 @@ def do_POST(self):
121121
f"baselines/{model}/landlord_down.ckpt",
122122
data["data"],
123123
)
124-
res = {
125-
"action": "init",
126-
"status": "fail",
127-
"data": {},
128-
"mag": "找不到此模型",
129-
}
124+
else:
125+
res = {
126+
"action": "init",
127+
"status": "fail",
128+
"data": {},
129+
"mag": "找不到此模型",
130+
}
130131

131132
elif data["action"] == "play": # 出牌阶段
132133
res = next(data["data"])

0 commit comments

Comments
 (0)