1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

fix up query object

This commit is contained in:
Kelly Brazil
2022-07-19 07:29:09 -07:00
parent fa7721c31d
commit d57a00e8be

View File

@ -84,13 +84,18 @@ def parse(
if jc.utils.has_data(data):
parts = urlparse(data)
query_list = parts.query.split('&')
query: Dict = {}
for q in query_list:
k, v = q.split('=')
query.update({k: v})
raw_output = {
'scheme': parts.scheme,
'netloc': parts.netloc,
'path': parts.path,
'params': parts.params,
'query': parts.query,
'query': query,
'fragment': parts.fragment
}