From a123eea52ff8b0aee0a342d9eacbd5538bb30edd Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Thu, 29 Feb 2024 14:03:40 +0530 Subject: [PATCH] dev: fix paginator for single groups --- apiserver/plane/utils/paginator.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apiserver/plane/utils/paginator.py b/apiserver/plane/utils/paginator.py index a4a1ae0f3..a10110725 100644 --- a/apiserver/plane/utils/paginator.py +++ b/apiserver/plane/utils/paginator.py @@ -327,13 +327,6 @@ class GroupedOffsetPaginator(OffsetPaginator): processed_results = self.__get_field_dict() for result in results: group_value = str(result.get(self.group_by_field_name)) - if group_value in processed_results: - processed_results[str(group_value)] = { - "results": [], - "total_results": processed_results[str(group_value)][ - "total_results" - ], - } processed_results[str(group_value)]["results"].append(result) return processed_results