fixed var scope
This commit is contained in:
parent
080ee1e96c
commit
10e5c2b46d
1 changed files with 1 additions and 3 deletions
|
@ -12,13 +12,11 @@ class CallbackModule(CallbackBase):
|
||||||
CALLBACK_TYPE = 'aggregate'
|
CALLBACK_TYPE = 'aggregate'
|
||||||
CALLBACK_NAME = 'timer'
|
CALLBACK_NAME = 'timer'
|
||||||
|
|
||||||
start_time = datetime.now()
|
|
||||||
|
|
||||||
def __init__(self, display):
|
def __init__(self, display):
|
||||||
|
|
||||||
super(CallbackModule, self).__init__(display)
|
super(CallbackModule, self).__init__(display)
|
||||||
|
|
||||||
start_time = datetime.now()
|
self.start_time = datetime.now()
|
||||||
|
|
||||||
def days_hours_minutes_seconds(self, timedelta):
|
def days_hours_minutes_seconds(self, timedelta):
|
||||||
minutes = (timedelta.seconds//60)%60
|
minutes = (timedelta.seconds//60)%60
|
||||||
|
|
Loading…
Reference in a new issue