convert the current hour to integer
This commit is contained in:
parent
db59680ff6
commit
84cff91e41
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ def remove_channel_from_database(database, scheduler, stream_id, stream_name, st
|
|||
# Search for a fallback stream
|
||||
def fallback_search(database):
|
||||
logger_job.warning('Searching for a fallback job.')
|
||||
current_hour = datetime.now().hour
|
||||
current_hour = int(datetime.now().hour)
|
||||
scheduled_hours = []
|
||||
for key, value in database.items():
|
||||
if value['start_at'] == "now" or value['start_at'] == "never":
|
||||
|
|
Loading…
Reference in a new issue