MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _normalize_runtime_method

Function _normalize_runtime_method

src/api/admin.py:163–167  ·  view source on GitHub ↗
(method: Optional[str])

Source from the content-addressed store, hash-verified

161
162
163def _normalize_runtime_method(method: Optional[str]) -> str:
164 normalized = (method or "").strip().lower()
165 if normalized not in {"browser", "personal"}:
166 raise HTTPException(status_code=400, detail="Invalid runtime method")
167 return normalized
168
169
170async def _prepare_captcha_runtime(method: str):

Callers 3

_prepare_captcha_runtimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected