Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use floats everywhere, it’s safer (#1917)
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 30, 2015
1 parent 5d894a9 commit bbfd1db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nikola/plugins/command/import_wordpress.py
Expand Up @@ -526,15 +526,15 @@ def add(our_key, wp_key, is_int=False, ignore_zero=False, is_float=False):
return
dst_meta[our_key] = value

add('aperture', b'aperture', is_int=True, ignore_zero=True)
add('aperture', b'aperture', is_float=True, ignore_zero=True)
add('credit', b'credit')
add('camera', b'camera')
add('caption', b'caption')
add('created_timestamp', b'created_timestamp', is_int=True, ignore_zero=True)
add('created_timestamp', b'created_timestamp', is_float=True, ignore_zero=True)
add('copyright', b'copyright')
add('focal_length', b'focal_length', is_int=True, ignore_zero=True)
add('iso', b'iso', is_int=True, ignore_zero=True)
add('shutter_speed', b'shutter_speed', is_int=False, ignore_zero=True, is_float=True)
add('focal_length', b'focal_length', is_float=True, ignore_zero=True)
add('iso', b'iso', is_float=True, ignore_zero=True)
add('shutter_speed', b'shutter_speed', ignore_zero=True, is_float=True)
add('title', b'title')

if len(dst_meta) > 0:
Expand Down

0 comments on commit bbfd1db

Please sign in to comment.