Skip to content

Commit 75a2f72

Browse files
committedMay 9, 2015
disable advertising while in upgrade_metadata
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 60e9e38 commit 75a2f72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

Diff for: ‎v7/upgrade_metadata/upgrade_metadata.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
from __future__ import unicode_literals
2828
import io
29-
29+
import nikola.post
3030
from nikola.plugin_categories import Command
3131
from nikola import utils
3232

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

5151
def _execute(self, options, args):
5252
L = utils.get_logger('upgrade_metadata', self.site.loghandlers)
53+
nikola.post._UPGRADE_METADATA_ADVERTISED = True
54+
5355
# scan posts
5456
self.site.scan_posts()
5557
flagged = []

0 commit comments

Comments
 (0)
Please sign in to comment.