From 6e4f8f9917f07b4727adb7e9eb64634ac21b586a Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 27 Dec 2020 14:36:16 +0200 Subject: [PATCH] Fix list_multi to return the filtered queryset. --- etebase_fastapi/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etebase_fastapi/collection.py b/etebase_fastapi/collection.py index 2b0b876..ff31e27 100644 --- a/etebase_fastapi/collection.py +++ b/etebase_fastapi/collection.py @@ -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)