Skip to content
Permalink
Browse files

API change in ImportMixin

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 8, 2017
1 parent 2b37a2f commit cfe8f56bbca185717068a7dccf5f6c85a03cc133
Showing with 16 additions and 16 deletions.
  1. +8 −8 v7/import_feed/import_feed.py
  2. +8 −8 v7/import_gplus/import_gplus.py
@@ -207,11 +207,11 @@ def import_item(self, item, out_folder=None):
LOGGER.warn('Not going to import "{0}" because it seems to contain'
' no content.'.format(title))

@staticmethod
def write_metadata(filename, title, slug, post_date, description, tags):
ImportMixin.write_metadata(filename,
title,
slug,
post_date.strftime(r'%Y/%m/%d %H:%m:%S'),
description,
tags)
def write_metadata(self, filename, title, slug, post_date, description, tags):
super(CommandImportFeed, self).write_metadata(
filename,
title,
slug,
post_date.strftime(r'%Y/%m/%d %H:%m:%S'),
description,
tags)
@@ -141,11 +141,11 @@ def import_posts(self, zipfile, names):
os.path.join(self.output_folder, out_folder, slug + '.html'),
content)

@staticmethod
def write_metadata(filename, title, slug, post_date, description, tags):
ImportMixin.write_metadata(filename,
title,
slug,
post_date.strftime(r'%Y/%m/%d %H:%m:%S'),
description,
tags)
def write_metadata(self, filename, title, slug, post_date, description, tags):
super(CommandImportGplus, self).write_metadata(
filename,
title,
slug,
post_date.strftime(r'%Y/%m/%d %H:%m:%S'),
description,
tags)

0 comments on commit cfe8f56

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