Skip to content

Commit

Permalink
feat: add filters to getAnnotations to improve valpal
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Jul 10, 2024
1 parent 90369d5 commit 757532b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sypht/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@ def get_annotations(
specification=None,
from_date=None,
to_date=None,
last_updated_from=None,
last_updated_to=None,
state=None,
endpoint=None,
rec_limit=None,
company_id=None,
Expand All @@ -453,6 +456,9 @@ def get_annotations(
specification=specification,
from_date=from_date,
to_date=to_date,
last_updated_from=last_updated_from,
last_updated_to=last_updated_to,
state=state,
endpoint=endpoint,
company_id=company_id,
):
Expand All @@ -467,6 +473,9 @@ def _get_annotations(
specification=None,
from_date=None,
to_date=None,
last_updated_from=None,
last_updated_to=None,
state=None,
endpoint=None,
company_id=None,
offset=0,
Expand All @@ -485,6 +494,12 @@ def _get_annotations(
filters.append("fromDate=" + from_date)
if to_date is not None:
filters.append("toDate=" + to_date)
if last_updated_from is not None:
filters.append("lastUpdatedFrom=" + last_updated_from)
if last_updated_to is not None:
filters.append("lastUpdatedTo=" + last_updated_to)
if state is not None:
filters.append("state=" + state)
if company_id is not None:
filters.append("companyId=" + company_id)

Expand Down

0 comments on commit 757532b

Please sign in to comment.