fix: 修复report.py中的错误处理逻辑,确保正确更新战斗记录状态
This commit is contained in:
parent
913a2e99d8
commit
34208a6400
@ -26,7 +26,7 @@ while True:
|
|||||||
db.flush()
|
db.flush()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.logger.error(f"ID:{li['id']}, e:{e}")
|
logger.logger.error(f"ID:{li['id']}, e:{e}")
|
||||||
db.update_fight_record_status(li['id'], 3, str(e))
|
db.update_fight_record_status(li['id'], 0,3, str(e))
|
||||||
time.sleep(1 * 60)
|
time.sleep(1 * 60)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user