Skip to content

Commit

Permalink
delete variable (#3813)
Browse files Browse the repository at this point in the history
* delete variable

* delete duplicate code

* add empty line

* delete empty line
  • Loading branch information
taminif authored and arikfr committed Jan 21, 2020
1 parent 56b51be commit 945f53f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions redash/query_runner/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit 945f53f

Please sign in to comment.