(session: SessionDep, chart_record_id: int)
| 124 | |
| 125 | |
| 126 | def get_chart_config(session: SessionDep, chart_record_id: int): |
| 127 | stmt = select(ChatRecord.chart).where(and_(ChatRecord.id == chart_record_id)) |
| 128 | res = session.execute(stmt) |
| 129 | for row in res: |
| 130 | try: |
| 131 | return orjson.loads(row.chart) |
| 132 | except Exception: |
| 133 | pass |
| 134 | return {} |
| 135 | |
| 136 | |
| 137 | def _format_column(column: dict) -> str: |
no outgoing calls
no test coverage detected