Skip to content

Commit

Permalink
Merge pull request #22 from LukeWoodward/syntax-error-fix
Browse files Browse the repository at this point in the history
Fix syntax error by adding missing closing parenthesis
  • Loading branch information
nhorvath authored Dec 19, 2020
2 parents 023138f + 7f34d27 commit 8a3701e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrebase/pyrebase.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def get(self, token=None, json_kwargs={}):
elif build_query["orderBy"] == "$value":
sorted_response = sorted(request_dict.items(), key=lambda item: item[1])
else:
sorted_response = sorted(request_dict.items(), key=lambda item: (build_query["orderBy"] in item[1], item[1].get(build_query["orderBy"], ""))
sorted_response = sorted(request_dict.items(), key=lambda item: (build_query["orderBy"] in item[1], item[1].get(build_query["orderBy"], "")))
return PyreResponse(convert_to_pyre(sorted_response), query_key)

def push(self, data, token=None, json_kwargs={}):
Expand Down

0 comments on commit 8a3701e

Please sign in to comment.