Fix list_multi to return the filtered queryset.
This commit is contained in:
parent
b3c177faa6
commit
6e4f8f9917
@ -129,7 +129,7 @@ def list_common(
|
||||
result, new_stoken_obj, done = filter_by_stoken_and_limit(stoken, limit, queryset, Collection.stoken_annotation)
|
||||
new_stoken = new_stoken_obj and new_stoken_obj.uid
|
||||
context = Context(user, prefetch)
|
||||
data: t.List[CollectionOut] = [CollectionOut.from_orm_context(item, context) for item in queryset]
|
||||
data: t.List[CollectionOut] = [CollectionOut.from_orm_context(item, context) for item in result]
|
||||
ret = ListResponse(data=data, stoken=new_stoken, done=done)
|
||||
return MsgpackResponse(content=ret)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user