MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / build_expire_style_inputs

Function build_expire_style_inputs

main.py:185–193  ·  view source on GitHub ↗
(selected_styles: list[str])

Source from the content-addressed store, hash-verified

183
184
185def build_expire_style_inputs(selected_styles: list[str]) -> str:
186 inputs = []
187 selected = set(selected_styles)
188 for style, label in EXPIRE_STYLE_OPTIONS:
189 checked = " checked" if style in selected else ""
190 inputs.append(
191 f'<label class="check"><input type="checkbox" name="expireStyle" value="{style}"{checked}> {label}</label>'
192 )
193 return "\n ".join(inputs)
194
195
196def build_setup_page(error: str = "", form: dict | None = None) -> str:

Callers 1

build_setup_pageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected