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

Function get_chat_predict_data

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

Source from the content-addressed store, hash-verified

288
289
290def get_chat_predict_data(session: SessionDep, chat_record_id: int):
291 stmt = select(ChatRecord.predict_data).where(and_(ChatRecord.id == chat_record_id))
292 res = session.execute(stmt)
293 for row in res:
294 try:
295 return orjson.loads(row.predict_data)
296 except Exception:
297 pass
298 return {}
299
300
301def get_chat_with_records_with_data(session: SessionDep, chart_id: int, current_user: CurrentUser,

Callers 2

export_excelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected