fix: 修复report.py中的错误处理逻辑,确保正确更新战斗记录状态

This commit is contained in:
晓丰 2025-06-14 23:28:31 +08:00
parent 913a2e99d8
commit 34208a6400

View File

@ -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)