Skip to content
Snippets Groups Projects
Commit 81c116b8 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Support ?key__uid=X&key__uid=Y filtering (NB. double underscore) (Closes: #25)

parent 5d69f380
Branches
No related tags found
No related merge requests found
......@@ -122,6 +122,9 @@ def api_source_version_architecture(request, name, version, architecture):
'created',
).order_by()
if 'key__uid' in request.GET:
qs = qs.filter(key__uid__in=request.GET.getlist('key__uid'))
grouped = groupby(
sorted(qs, key=lambda x: (x.buildinfo.sha1, x.created)),
lambda x: x.buildinfo.sha1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment