MCPcopy Index your code
hub / github.com/dataease/SQLBot / get_chat_chart_data

Function get_chat_chart_data

backend/apps/chat/curd/chat.py:267–275  ·  view source on GitHub ↗
(session: SessionDep, chat_record_id: int)

Source from the content-addressed store, hash-verified

265 return json_result
266
267def get_chat_chart_data(session: SessionDep, chat_record_id: int):
268 stmt = select(ChatRecord.data).where(and_(ChatRecord.id == chat_record_id))
269 res = session.execute(stmt)
270 for row in res:
271 try:
272 return orjson.loads(row.data)
273 except Exception:
274 pass
275 return {}
276
277
278def get_chat_predict_data_with_user(session: SessionDep, current_user: CurrentUser, chat_record_id: int):

Callers 5

generate_analysisMethod · 0.90
generate_predictMethod · 0.90
run_taskMethod · 0.90
export_excelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected