Skip to content

Commit

Permalink
fix yql builder as CLI (#151)
Browse files Browse the repository at this point in the history
* fix yql builder as CLI

* bump version
  • Loading branch information
kdutia authored Dec 3, 2024
1 parent f71b720 commit 4431ff9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cpr_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
_MAJOR = "1"
_MINOR = "9"
_PATCH = "5"
_PATCH = "6"
_SUFFIX = ""

VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR)
Expand Down
7 changes: 6 additions & 1 deletion src/cpr_sdk/yql_builder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from string import Template
from typing import Optional

from rich import print as rprint
from cpr_sdk.models.search import Filters, SearchParameters


Expand Down Expand Up @@ -231,7 +232,9 @@ def to_str(self) -> str:
exact_match=False,
limit=10,
max_hits_per_family=10,
filters=Filters(**{"document_languages": "value", "family_source": "value"}),
filters=Filters(
**{"document_languages": ["value"], "family_source": ["value"]}
),
year_range=(2000, 2020),
continuation_tokens=None,
)
Expand All @@ -240,3 +243,5 @@ def to_str(self) -> str:
params=params,
sensitive=False,
).to_str()

rprint(yql_new)

0 comments on commit 4431ff9

Please sign in to comment.