convert the current hour to integer

This commit is contained in:
deflax 2024-06-24 11:46:33 +00:00
parent db59680ff6
commit 84cff91e41

View file

@ -116,7 +116,7 @@ def remove_channel_from_database(database, scheduler, stream_id, stream_name, st
# Search for a fallback stream # Search for a fallback stream
def fallback_search(database): def fallback_search(database):
logger_job.warning('Searching for a fallback job.') logger_job.warning('Searching for a fallback job.')
current_hour = datetime.now().hour current_hour = int(datetime.now().hour)
scheduled_hours = [] scheduled_hours = []
for key, value in database.items(): for key, value in database.items():
if value['start_at'] == "now" or value['start_at'] == "never": if value['start_at'] == "now" or value['start_at'] == "never":