Check is_dir before sending to digest.
This commit is contained in:
parent
9f9d724a71
commit
be7f5ebb01
1 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,8 @@ def post_album_remove_child(album_id):
|
|||
def post_album_refresh_directories(album_id):
|
||||
album = common.P_album(album_id, response_type='json')
|
||||
for directory in album.get_associated_directories():
|
||||
if not directory.is_dir:
|
||||
continue
|
||||
digest = common.P.digest_directory(directory, new_photo_ratelimit=0.1)
|
||||
etiquette.helpers.run_generator(digest)
|
||||
common.P.commit(message='refresh album directories endpoint')
|
||||
|
|
Loading…
Reference in a new issue