schedulebot: Fix having hour as float

pull/456/merge
Mike Lang 5 days ago
parent 3d03f0d984
commit 6bb3edab41

@ -297,7 +297,7 @@ def main(conf_file, hour=-1, no_groups=False, stream="General", no_mentions=Fals
schedule = None schedule = None
while True: while True:
hour = (time.time() - start_time) // 3600 hour = int((time.time() - start_time) // 3600)
# Download a new schedule or use the old one if there's a failure # Download a new schedule or use the old one if there's a failure
new_schedule = reload_schedule() new_schedule = reload_schedule()
if new_schedule is not None: if new_schedule is not None:

Loading…
Cancel
Save