mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix(Dashboard):Fix the data distortion issue of bigInt type after adding it to the dashboard (#346)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user