Skip to content

Commit

Permalink
fixed pephub url
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Aug 29, 2023
1 parent e846905 commit 544c49e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pephubclient/pephubclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def upload(
def find_project(
self,
namespace: str,
query_string: str = None,
query_string: str = "",
limit: int = 100,
offset: int = 0,
filter_by: Literal["submission_date", "last_update_date"] = None,
Expand All @@ -222,10 +222,11 @@ def find_project(
"limit": limit,
"offset": offset,
}
if filter_by:
if filter_by in ["submission_date", "last_update_date"]:
query_param["filter_by"] = filter_by
query_param["start_date"] = start_date
query_param["end_date"] = end_date
query_param["filter_start_date"] = start_date
if end_date:
query_param["filter_end_date"] = end_date

Check warning on line 229 in pephubclient/pephubclient.py

View check run for this annotation

Codecov / codecov/patch

pephubclient/pephubclient.py#L226-L229

Added lines #L226 - L229 were not covered by tests

url = self._build_project_search_url(
namespace=namespace,
Expand Down

0 comments on commit 544c49e

Please sign in to comment.