Skip to content

Commit 544c49e

Browse files
committed
fixed pephub url
1 parent e846905 commit 544c49e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pephubclient/pephubclient.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def upload(
196196
def find_project(
197197
self,
198198
namespace: str,
199-
query_string: str = None,
199+
query_string: str = "",
200200
limit: int = 100,
201201
offset: int = 0,
202202
filter_by: Literal["submission_date", "last_update_date"] = None,
@@ -222,10 +222,11 @@ def find_project(
222222
"limit": limit,
223223
"offset": offset,
224224
}
225-
if filter_by:
225+
if filter_by in ["submission_date", "last_update_date"]:
226226
query_param["filter_by"] = filter_by
227-
query_param["start_date"] = start_date
228-
query_param["end_date"] = end_date
227+
query_param["filter_start_date"] = start_date
228+
if end_date:
229+
query_param["filter_end_date"] = end_date
229230

230231
url = self._build_project_search_url(
231232
namespace=namespace,

0 commit comments

Comments
 (0)