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 issue where the predicted data cannot be displayed on the data dashboard
This commit is contained in:
@@ -50,7 +50,7 @@ def load_resource(session: SessionDep, dashboard: QueryDashboard):
|
||||
result_dict = dict(result)
|
||||
canvas_view_obj = orjson.loads(result_dict['canvas_view_info'])
|
||||
for item in canvas_view_obj.values():
|
||||
if all(key in item for key in ['datasource', 'sql']) and item['datasource'] is not None:
|
||||
if all(key in item for key in ['datasource', 'sql']) and item['datasource'] is not None and item['sql'] is not None:
|
||||
data_result = get_chart_data_ds(session, item['datasource'], item['sql'])
|
||||
item['data']['data'] = data_result['data']
|
||||
item['status'] = data_result['status']
|
||||
|
||||
Reference in New Issue
Block a user