Skip to content

Commit

Permalink
API change in ImportMixin
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 8, 2017
1 parent 2b37a2f commit cfe8f56
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions v7/import_feed/import_feed.py
Expand Up @@ -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)
16 changes: 8 additions & 8 deletions v7/import_gplus/import_gplus.py
Expand Up @@ -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.