Skip to content

Commit

Permalink
added sort param in queryparam (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
anisbhsl authored Mar 7, 2024
1 parent 58f4fc8 commit b8ba8c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pynequa/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class QueryParams(AbstractParams):
open_params: Optional[List[OpenParams]] = field(default_factory=lambda: [])
page: Optional[int] = 1
page_size: Optional[int] = 10
sort: Optional[str] = None
tab: Optional[str] = None
scope: Optional[str] = None
basket: Optional[str] = None
Expand Down Expand Up @@ -214,6 +215,9 @@ def _prepare_query_args(self, query_name: str) -> Dict:
else:
params["pageSize"] = self.page_size

if self.sort is not None:
params["sort"] = self.sort

if self.tab is not None:
params["tab"] = self.tab

Expand Down

0 comments on commit b8ba8c9

Please sign in to comment.