修复BUG
This commit is contained in:
parent
0e3476b734
commit
4f8cf8266d
|
@ -94,7 +94,7 @@ def battle_logic(flags, baseline : Baseline, battle : Battle):
|
||||||
battle.status = 1 if challenge_success else 2
|
battle.status = 1 if challenge_success else 2
|
||||||
battle.save()
|
battle.save()
|
||||||
if not challenge_success:
|
if not challenge_success:
|
||||||
cnt = Battle.select().where(Battle.status == 0).count()
|
cnt = Battle.select().where(Battle.challenger_path == battle.challenger_path,Battle.status == 0).count()
|
||||||
if cnt == 0:
|
if cnt == 0:
|
||||||
onnx_path = str(battle.challenger_path) + '.onnx'
|
onnx_path = str(battle.challenger_path) + '.onnx'
|
||||||
if os.path.exists(onnx_path):
|
if os.path.exists(onnx_path):
|
||||||
|
|
Loading…
Reference in New Issue