Fixed type issue for update_interval
This commit is contained in:
parent
dcbaa4893e
commit
139c59bfab
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ class LoopTimer(object):
|
||||||
"""Manages loop times and sleeps until
|
"""Manages loop times and sleeps until
|
||||||
next loop."""
|
next loop."""
|
||||||
def __init__(self, loop_interval, run_on_hour=False):
|
def __init__(self, loop_interval, run_on_hour=False):
|
||||||
self.interval = loop_interval
|
self.interval = int(str(loop_interval))
|
||||||
self.on_hour = run_on_hour
|
self.on_hour = run_on_hour
|
||||||
self.loop_history = []
|
self.loop_history = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue