Skip to content
Permalink
Browse files

projectpages: prevent double rebuilds

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 11, 2015
1 parent e956ddd commit bd392180e4acffa4da262ea72fdf83dfbefeb666
Showing with 2 additions and 4 deletions.
  1. +2 −4 v7/projectpages/projectpages.py
@@ -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 = []
@@ -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'])

@@ -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.
You can’t perform that action at this time.