File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ def upload(
196
196
def find_project (
197
197
self ,
198
198
namespace : str ,
199
- query_string : str = None ,
199
+ query_string : str = "" ,
200
200
limit : int = 100 ,
201
201
offset : int = 0 ,
202
202
filter_by : Literal ["submission_date" , "last_update_date" ] = None ,
@@ -222,10 +222,11 @@ def find_project(
222
222
"limit" : limit ,
223
223
"offset" : offset ,
224
224
}
225
- if filter_by :
225
+ if filter_by in [ "submission_date" , "last_update_date" ] :
226
226
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
229
230
230
231
url = self ._build_project_search_url (
231
232
namespace = namespace ,
You can’t perform that action at this time.
0 commit comments