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

Function _format_column

backend/apps/chat/curd/chat.py:137–143  ·  view source on GitHub ↗

格式化单个column字段

(column: dict)

Source from the content-addressed store, hash-verified

135
136
137def _format_column(column: dict) -> str:
138 """格式化单个column字段"""
139 value = column.get('value', '')
140 name = column.get('name', '')
141 if value != name and name:
142 return f"{value}({name})"
143 return value
144
145
146def format_chart_fields(chart_info: dict) -> list:

Callers 1

format_chart_fieldsFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected