Skip to content

Commit

Permalink
disable advertising while in upgrade_metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 9, 2015
1 parent 60e9e38 commit 75a2f72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion v7/upgrade_metadata/upgrade_metadata.py
Expand Up @@ -26,7 +26,7 @@

from __future__ import unicode_literals
import io

import nikola.post
from nikola.plugin_categories import Command
from nikola import utils

Expand All @@ -50,6 +50,8 @@ class UpgradeMetadata(Command):

def _execute(self, options, args):
L = utils.get_logger('upgrade_metadata', self.site.loghandlers)
nikola.post._UPGRADE_METADATA_ADVERTISED = True

# scan posts
self.site.scan_posts()
flagged = []
Expand Down

0 comments on commit 75a2f72

Please sign in to comment.