fix(api): 删除一个logger使用
This commit is contained in:
@@ -50,7 +50,6 @@ async def search_history(history: HistorySearchIn) -> HistorySearchOut:
|
|||||||
record = await Config.merge_statistic_info(records)
|
record = await Config.merge_statistic_info(records)
|
||||||
# 安全检查:确保 index 字段存在
|
# 安全检查:确保 index 字段存在
|
||||||
if "index" not in record:
|
if "index" not in record:
|
||||||
logger.warning(f"合并统计信息缺少 index 字段,用户: {user}, 日期: {date}")
|
|
||||||
record["index"] = []
|
record["index"] = []
|
||||||
record["index"] = [HistoryIndexItem(**_) for _ in record["index"]]
|
record["index"] = [HistoryIndexItem(**_) for _ in record["index"]]
|
||||||
record = HistoryData(**record)
|
record = HistoryData(**record)
|
||||||
|
|||||||
Reference in New Issue
Block a user