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:
jo 2021-08-18 16:19:58 +02:00
parent d6093f7356
commit efd362eb62
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class AirtimeApiClient:
def get_schedule(self): def get_schedule(self):
current_time = datetime.datetime.utcnow() 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_current = current_time.isoformat(timespec="seconds")
str_end = end_time.isoformat(timespec="seconds") str_end = end_time.isoformat(timespec="seconds")