PDB.new_album call album.add_photos instead of add_photo.
This commit is contained in:
parent
0e3ae11610
commit
1f7749b80a
1 changed files with 2 additions and 3 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue