mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 21:33:18 -07:00
Fix Cloudinary delete all limit of 1000
This commit is contained in:
parent
4430c14374
commit
7a11b10947
1 changed files with 6 additions and 1 deletions
|
@ -921,7 +921,12 @@ def delete_from_cloudinary(rating_key=None, delete_all=False):
|
|||
)
|
||||
|
||||
if delete_all:
|
||||
delete_resources_by_tag('tautulli')
|
||||
partial = True
|
||||
next_cursor = ''
|
||||
while partial is True:
|
||||
r = delete_resources_by_tag('tautulli', next_cursor=next_cursor)
|
||||
partial = r.get('partial', False)
|
||||
next_cursor = r.get('next_cursor', '')
|
||||
logger.debug("Tautulli Helpers :: Deleted all images from Cloudinary.")
|
||||
elif rating_key:
|
||||
delete_resources_by_tag(str(rating_key))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue