Add photo.simple_mimetype to jsonify.

This commit is contained in:
voussoir 2021-05-24 20:42:44 -07:00
parent 387b7f1096
commit cad360bc3f
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -1085,6 +1085,7 @@ class Photo(ObjectBase):
'filename': self.basename, 'filename': self.basename,
'mimetype': self.mimetype, 'mimetype': self.mimetype,
'searchhidden': bool(self.searchhidden), 'searchhidden': bool(self.searchhidden),
'simple_mimetype': self.simple_mimetype,
} }
if include_albums: if include_albums:
j['albums'] = [album.jsonify(minimal=True) for album in self.get_containing_albums()] j['albums'] = [album.jsonify(minimal=True) for album in self.get_containing_albums()]