Skip to content

Commit

Permalink
fix: order filter
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier committed Jan 22, 2022
1 parent c65fe95 commit 094dbad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgrest_py/base_request_builder.py
Expand Up @@ -213,7 +213,7 @@ def __init__(self, session: Union[AsyncClient, SyncClient]):
BaseFilterRequestBuilder.__init__(self, session)

def order(self, column: str, *, desc=False, nullsfirst=False):
self.session.params.add(
self.session.params = self.session.params.add(
"order",
f"{column}{'.desc' if desc else ''}{'.nullsfirst' if nullsfirst else ''}",
)
Expand Down

0 comments on commit 094dbad

Please sign in to comment.