PDB.new_album call album.add_photos instead of add_photo.

This commit is contained in:
voussoir 2018-03-22 23:11:25 -07:00
parent 0e3ae11610
commit 1f7749b80a

View file

@ -107,9 +107,8 @@ class PDBAlbumMixin:
album.add_associated_directory(associated_directory, commit=False)
if photos is not None:
for photo in photos:
photo = self.get_photo(photo)
album.add_photo(photo, commit=False)
photos = [self.get_photo(photo) for photo in photos]
album.add_photos(photos, commit=False)
if commit:
self.log.debug('Committing - new Album')