Skip to content

Commit

Permalink
don't send empty params in payload (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
anisbhsl authored Oct 12, 2023
1 parent bd039a3 commit f4c5584
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions pynequa/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,31 +54,31 @@ def _generate_advanced_params_payload(self) -> Dict:

class QueryParams:
name: str = "" # required
action: str = ""
action: str = None
search_text: str = "" # required
select_params: List[SelectParams] = []
additional_select_clause: str = ""
additional_where_clause: str = ""
additional_select_clause: str = None
additional_where_clause: str = None
open_params: List[OpenParams] = []
page: int = 0
page_size: int = 0
tab: str = ""
scope: str = ""
basket: str = ""
tab: str = None
scope: str = None
basket: str = None
is_first_page: bool = False
strict_refine: bool = False
global_relevance: int = 0
question_language: str = ""
question_default_language: str = ""
spelling_correction_mode: str = ""
spelling_correction_filter: str = ""
document_weight: str = ""
text_part_weights: str = ""
relevance_transforms: str = ""
global_relevance: int = None
question_language: str = None
question_default_language: str = None
spelling_correction_mode: str = None
spelling_correction_filter: str = None
document_weight: str = None
text_part_weights: str = None
relevance_transforms: str = None
remove_duplicates: bool = False
aggregations: List[str] = []
order_by: str = ""
group_by: str = ""
order_by: str = None
group_by: str = None
advanced: AdvancedParams = AdvancedParams()

def __init__(self) -> None:
Expand Down

0 comments on commit f4c5584

Please sign in to comment.