Skip to content
Permalink
Browse files

disable advertising while in upgrade_metadata

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 9, 2015
1 parent 60e9e38 commit 75a2f72e72a5d76affba7e2e856c4633e59e99a2
Showing with 3 additions and 1 deletion.
  1. +3 −1 v7/upgrade_metadata/upgrade_metadata.py
@@ -26,7 +26,7 @@

from __future__ import unicode_literals
import io

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

@@ -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 = []

0 comments on commit 75a2f72

Please sign in to comment.
You can’t perform that action at this time.