Scheduler should prepare 1 day ahead, not 1 hour
The old API client v1 used to call the following action, and underlying schedule model:d6093f7356/airtime_mvc/application/controllers/ApiController.php (L720-L730)
d6093f7356/airtime_mvc/application/models/Schedule.php (L1118-L1140)
The new API v2 prepared 1 hour of scheduled track instead of 1 day in the old API.
This commit is contained in:
parent
d6093f7356
commit
efd362eb62
|
@ -47,7 +47,7 @@ class AirtimeApiClient:
|
|||
|
||||
def get_schedule(self):
|
||||
current_time = datetime.datetime.utcnow()
|
||||
end_time = current_time + datetime.timedelta(hours=1)
|
||||
end_time = current_time + datetime.timedelta(days=1)
|
||||
|
||||
str_current = current_time.isoformat(timespec="seconds")
|
||||
str_end = end_time.isoformat(timespec="seconds")
|
||||
|
|
Loading…
Reference in New Issue