Fix new_photo, data[extension] to use new pathclass.Extension.

This commit is contained in:
voussoir 2020-02-19 15:11:52 -08:00
parent 5da8d793d6
commit 1375d9fb26

View file

@ -250,7 +250,7 @@ class PDBPhotoMixin:
'id': photo_id, 'id': photo_id,
'filepath': filepath.absolute_path, 'filepath': filepath.absolute_path,
'override_filename': None, 'override_filename': None,
'extension': filepath.extension, 'extension': filepath.extension.no_dot,
'created': helpers.now(), 'created': helpers.now(),
'tagged_at': None, 'tagged_at': None,
'author_id': author_id, 'author_id': author_id,