Commit 420e3dcf authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed wrong urlencode on code snippets.

parent 9a0af7be
Pipeline #67481 passed with stages
in 13 minutes and 30 seconds
......@@ -255,7 +255,7 @@ def query_api_url(*args, query_string: Dict[str, Any] = None):
"""
url = os.path.join(config.api_url(False), *args)
if query_string is not None:
url = '%s?%s' % (url, urlencode(query_string))
url = '%s?%s' % (url, urlencode(query_string, doseq=True))
return url
......
......@@ -232,8 +232,6 @@ class RepoCalcsResource(Resource):
code_args = dict(request.args)
if 'statistics' in code_args:
del(code_args['statistics'])
import json
utils.get_logger(__name__).info('create code snippets', code_args=json.dumps(code_args))
results['curl'] = query_api_curl('archive', 'query', query_string=code_args)
results['python'] = query_api_python('archive', 'query', query_string=code_args)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment