(session: SessionDep, chat_record_id: int)
| 265 | return json_result |
| 266 | |
| 267 | def 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 | |
| 278 | def get_chat_predict_data_with_user(session: SessionDep, current_user: CurrentUser, chat_record_id: int): |
no outgoing calls
no test coverage detected