Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Simplify
  • Loading branch information
Juanjo Conti committed Sep 2, 2015
1 parent fa2f28d commit 079e80b
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions v7/import_goodreads/import_goodreads.py
Expand Up @@ -119,16 +119,7 @@ def import_item(self, item):

self.write_metadata(
os.path.join(self.output_folder, slug + '.meta'),
title, slug, post_date, '', tags)
title, slug, post_date.strftime(r'%Y/%m/%d %H:%m:%S'), '', tags)
self.write_content(
os.path.join(self.output_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)
content)

0 comments on commit 079e80b

Please sign in to comment.