示例#1
0
 def tasksToStopTracking(self):
     stoppable = lambda effort: effort.isBeingTracked(
     ) and not effort.isTotal()
     return set([
         effort.task()
         for effort in (self.items if self.items else self.list)
         if stoppable(effort)
     ])  # pylint: disable=W0621
 def tasksToStopTracking(self):
     stoppable = lambda effort: effort.isBeingTracked() and not effort.isTotal()
     return set([effort.task() for effort in (self.items if self.items else self.list) if stoppable(effort)])  # pylint: disable=W0621 
示例#3
0
 def tasksToStopTracking(self):
     return set([effort.task() for effort in self.list if effort.isBeingTracked() and not effort.isTotal()])