Skip to content

Commit db9c7c0

Browse files
authored
fix(Dashboard):Fix the data distortion issue of bigInt type after adding it to the dashboard (#346)
1 parent a7f8c41 commit db9c7c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

backend/apps/chat/curd/chat.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,14 @@ def get_chat_with_records(session: SessionDep, chart_id: int, current_user: Curr
242242

243243
result = list(map(format_record, record_list))
244244

245+
for row in result:
246+
try:
247+
data_value = row.get('data')
248+
if data_value is not None:
249+
row['data'] = format_json_data(data_value)
250+
except Exception:
251+
pass
252+
245253
chat_info.records = result
246254

247255
return chat_info

0 commit comments

Comments
 (0)