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

Function get_form_value

main.py:88–92  ·  view source on GitHub ↗
(data: dict, key: str, default: str = "")

Source from the content-addressed store, hash-verified

86
87
88def get_form_value(data: dict, key: str, default: str = "") -> str:
89 value = data.get(key, default)
90 if isinstance(value, list):
91 value = value[-1] if value else default
92 return str(value if value is not None else default)
93
94
95def get_form_list(data: dict, key: str) -> list[str]:

Callers 4

normalize_bool_fieldFunction · 0.85
parse_int_fieldFunction · 0.85
parse_setup_optionsFunction · 0.85
build_setup_pageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected