From 9f57182fc1d77b152cb0539de9952aa68e101504 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 14 Mar 2023 15:32:26 +0100 Subject: [PATCH] Fixed collection sorting & paging order --- kdb-bot/src/bot_graphql/abc/query_abc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kdb-bot/src/bot_graphql/abc/query_abc.py b/kdb-bot/src/bot_graphql/abc/query_abc.py index f389e4c7..028678f6 100644 --- a/kdb-bot/src/bot_graphql/abc/query_abc.py +++ b/kdb-bot/src/bot_graphql/abc/query_abc.py @@ -182,10 +182,10 @@ class QueryABC(ObjectType): if filter is not None: collection = filter.filter(collection) - if page is not None: - collection = page.filter(collection) - if sort is not None: collection = sort.filter(collection) + if page is not None: + collection = page.filter(collection) + return collection