Commit f7bc99ea authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fix archive query default for res_type.

parent 02179525
Pipeline #67167 passed with stages
in 12 minutes and 14 seconds
......@@ -114,8 +114,7 @@ archives_from_query_parser.add_argument(
name='res_type', type=str, help='Type of return value, can be zip of json.',
location='args', default='zip')
......@@ -142,7 +141,7 @@ class ArchiveQueryResource(Resource):
args = archives_from_query_parser.parse_args()
compress = args.get('compress', False)
res_type = args.get('res_type', 'zip')
res_type = args.get('res_type')
except Exception:
abort(400, message='bad parameter types')
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