fix(Dashboard):Fix the data distortion issue of bigInt type after adding it to the dashboard (#346)

This commit is contained in:
王嘉豪
2025-10-22 21:12:07 +08:00
committed by GitHub
parent a7f8c41366
commit db9c7c0570
+8
View File
@@ -242,6 +242,14 @@ def get_chat_with_records(session: SessionDep, chart_id: int, current_user: Curr
result = list(map(format_record, record_list))
for row in result:
try:
data_value = row.get('data')
if data_value is not None:
row['data'] = format_json_data(data_value)
except Exception:
pass
chat_info.records = result
return chat_info