Skip to content

Commit

Permalink
projectpages: prevent double rebuilds
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 11, 2015
1 parent e956ddd commit bd39218
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions v7/projectpages/projectpages.py
Expand Up @@ -145,6 +145,7 @@ def sortf(p):

all_meta = [(p.title(), p.meta('status')) for p in self.projects]
all_meta += [p.meta('previewimage') for p in context["featured"]]
all_meta += [p.source_path for p in context["featured"]]

template_dep = self.site.template_system.template_deps(template_name)
file_dep = []
Expand All @@ -162,9 +163,7 @@ def sortf(p):
'clean': True,
'uptodate': [utils.config_changed({
1: self.kw,
2: context,
3: self.projects,
4: all_meta,
2: all_meta,
})],
}, self.kw['filters'])

Expand All @@ -177,6 +176,5 @@ def sortf(p):
'clean': True,
'uptodate': [utils.config_changed({
1: self.kw,
3: self.projects,
})],
}, self.kw['filters'])

0 comments on commit bd39218

Please sign in to comment.