From 32fe3f277ad517b85030be1d75a190ff2335d6cd Mon Sep 17 00:00:00 2001 From: Benjamin Van Ryseghem Date: Sat, 16 Aug 2014 12:24:52 +0200 Subject: [PATCH] Fix issue with sub project of parallel project --- nextaction.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/nextaction.py b/nextaction.py index bab6230..ff170b5 100755 --- a/nextaction.py +++ b/nextaction.py @@ -162,12 +162,20 @@ class Project(object): order = order + 1 return self._subProjects + + def IsIgnored(self): + return self.name.startswith('Someday') or self.name.startswith('List - ') def IsSequential(self): - startsWithKeyword = self.name.startswith('Someday') or self.name.startswith('List - ') + ignored = self.IsIgnored() endsWithEqual = self.name.endswith('=') - parentSequential = self.parent == None or self.parent.IsSequential() - seq = ((not startsWithKeyword) and (not endsWithEqual)) and parentSequential + validParent = self.parent == None or not self.parent.IsIgnored() + seq = ((not ignored) and (not endsWithEqual)) and validParent + # if self.name .startsWith('Payer Camille'): +# print startsWithKeyword +# print endsWithEqual +# print parentSequential +# print seq return seq def IsParallel(self):