mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Improve mass delete from Cloudinary
This commit is contained in:
parent
231de3a7a5
commit
b1516e9963
2 changed files with 15 additions and 6 deletions
|
@ -1259,8 +1259,11 @@ class DataFactory(object):
|
|||
'GROUP BY rating_key' % where
|
||||
results = monitor_db.select(query, args=args)
|
||||
|
||||
for cloudinary_info in results:
|
||||
helpers.delete_from_cloudinary(rating_key=cloudinary_info['rating_key'])
|
||||
if delete_all:
|
||||
helpers.delete_from_cloudinary(delete_all=delete_all)
|
||||
else:
|
||||
for cloudinary_info in results:
|
||||
helpers.delete_from_cloudinary(rating_key=cloudinary_info['rating_key'])
|
||||
|
||||
logger.info(u"Tautulli DataFactory :: Deleting Cloudinary info%s from the database."
|
||||
% log_msg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue