From 945f53fea3c5c99d78df80be1910395c7fd282de Mon Sep 17 00:00:00 2001 From: taminif Date: Tue, 21 Jan 2020 18:29:56 +0900 Subject: [PATCH] delete variable (#3813) * delete variable * delete duplicate code * add empty line * delete empty line --- redash/query_runner/mongodb.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/redash/query_runner/mongodb.py b/redash/query_runner/mongodb.py index 0639b02808..8dd67fcb64 100644 --- a/redash/query_runner/mongodb.py +++ b/redash/query_runner/mongodb.py @@ -255,13 +255,6 @@ def run_query(self, query, user): step["$sort"] = SON(sort_list) - if not aggregate: - s = None - if "sort" in query_data and query_data["sort"]: - s = [] - for field in query_data["sort"]: - s.append((field["name"], field["direction"])) - if "fields" in query_data: f = query_data["fields"]