format
This commit is contained in:
parent
d6ef829998
commit
308513b5de
1 changed files with 8 additions and 8 deletions
|
@ -32,7 +32,7 @@ class Timelines():
|
||||||
|
|
||||||
self.tile_path = tile_path
|
self.tile_path = tile_path
|
||||||
self.cuts_path = cuts_path
|
self.cuts_path = cuts_path
|
||||||
self.detect_cuts = cuts_path != None
|
self.detect_cuts = cuts_path is not None
|
||||||
|
|
||||||
self.points = points
|
self.points = points
|
||||||
|
|
||||||
|
@ -532,7 +532,7 @@ class Profiler():
|
||||||
def set_task(self, task):
|
def set_task(self, task):
|
||||||
now = time()
|
now = time()
|
||||||
if self.task:
|
if self.task:
|
||||||
if not self.task in self.times:
|
if self.task not in self.times:
|
||||||
self.times[self.task] = 0
|
self.times[self.task] = 0
|
||||||
else:
|
else:
|
||||||
self.times[self.task] += now - self.time
|
self.times[self.task] += now - self.time
|
||||||
|
|
Loading…
Add table
Reference in a new issue