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

Function checkParams

backend/apps/db/db.py:766–772  ·  view source on GitHub ↗
(extraParams: str, illegalParams: List[str])

Source from the content-addressed store, hash-verified

764
765
766def checkParams(extraParams: str, illegalParams: List[str]):
767 kvs = extraParams.split('&')
768 for kv in kvs:
769 if kv and '=' in kv:
770 k, v = kv.split('=')
771 if k in illegalParams:
772 raise HTTPException(status_code=500, detail=f'Illegal Parameter: {k}')

Callers 1

get_uri_from_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected