@@ -65,10 +65,10 @@ def get_last_runs(self, limit=10, only_finished_runs=False):
6565
6666 def get_runs_by_date (self , from_date , to_date = datetime .now ()):
6767 """
68- Get the list of the runs of the scenario in a given datetime range
68+ Get the list of the runs of the scenario in a given date range, [from_date, to_date)
6969
70- :param datetime from_date: start of the time range to retrieve runs for
71- :param datetime to_date: end of the time range to retrieve runs for, or now()
70+ :param datetime from_date: start of the date range to retrieve runs for, inclusive
71+ :param datetime to_date: end of the date range to retrieve runs for, or now(), exclusive
7272
7373 :return: A list of :class:`dataikuapi.dss.scenario.DSSScenarioRun`
7474 """
@@ -80,8 +80,8 @@ def as_date(d):
8080
8181 runs = self .client ._perform_json (
8282 "GET" , "/projects/%s/scenarios/%s/get-runs-by-date" % (self .project_key , self .id ), params = {
83- 'fromDate' : as_date (from_date ),
84- 'toDate' : as_date (to_date )
83+ 'fromDate' : as_date (from_date ),
84+ 'toDate' : as_date (to_date )
8585 })
8686 return [DSSScenarioRun (self .client , run ) for run in runs ]
8787
0 commit comments