MCPcopy Create free account
hub / github.com/ddnet/ddnet / export_tunings

Function export_tunings

scripts/export_settings_commands_table.py:177–185  ·  view source on GitHub ↗
(parsed_tunings)

Source from the content-addressed store, hash-verified

175
176
177def export_tunings(parsed_tunings):
178 output = ['<div style="overflow-x: auto;"><table class="settingscommands">']
179 output.append(" <tr><th>Tuning</th><th>Description</th><th>Default</th></tr>")
180
181 for tuning in parsed_tunings:
182 output.append(f" <tr><td>{html.escape(tuning['name'])}</td><td>{html.escape(tuning['description'])}</td><td>{tuning['default']}</td></tr>")
183
184 output.append("</table></div>")
185 return "\n".join(output)
186
187
188def export_block(title, content):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected