Skip to content

Commit db9672a

Browse files
committedMar 6, 2016
Merge pull request #2282 from getnikola/fix-wordpress-attachment-writing
Fixing #2264.
2 parents f347e37 + d6dbf14 commit db9672a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎nikola/plugins/command/import_wordpress.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ def add(our_key, wp_key, is_int=False, ignore_zero=False, is_float=False):
562562
meta = {}
563563
meta['size'] = size.decode('utf-8')
564564
if width_key in metadata[size_key][size] and height_key in metadata[size_key][size]:
565-
meta['width'] = metadata[size_key][size][width_key]
566-
meta['height'] = metadata[size_key][size][height_key]
565+
meta['width'] = int(metadata[size_key][size][width_key])
566+
meta['height'] = int(metadata[size_key][size][height_key])
567567

568568
path = urlparse(url).path
569569
dst_path = os.path.join(*([self.output_folder, 'files'] + list(path.split('/'))))

0 commit comments

Comments
 (0)
Please sign in to comment.