MCPcopy Create free account
hub / github.com/explorerhq/sql-explorer / get_params_from_request

Function get_params_from_request

explorer/utils.py:117–127  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

115
116
117def get_params_from_request(request):
118 val = request.GET.get("params", None)
119 try:
120 d = {}
121 tuples = val.split("|")
122 for t in tuples:
123 res = t.split(":")
124 d[res[0]] = res[1]
125 return d
126 except Exception:
127 return None
128
129
130def get_params_for_url(query):

Callers 2

url_get_paramsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by 1