mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 21:03:21 -07:00
Merge branch 'nightly' into python3
# Conflicts: # plexpy/database.py # plexpy/version.py
This commit is contained in:
commit
3ca4351aeb
10 changed files with 116 additions and 53 deletions
|
@ -698,9 +698,10 @@ class Users(object):
|
|||
return all(success)
|
||||
|
||||
elif str(user_id).isdigit():
|
||||
database.delete_user_history(user_id=user_id)
|
||||
delete_success = database.delete_user_history(user_id=user_id)
|
||||
|
||||
if purge_only:
|
||||
return True
|
||||
return delete_success
|
||||
else:
|
||||
logger.info("Tautulli Users :: Deleting user with user_id %s from database."
|
||||
% user_id)
|
||||
|
@ -708,7 +709,7 @@ class Users(object):
|
|||
monitor_db.action('UPDATE users '
|
||||
'SET deleted_user = 1, keep_history = 0, do_notify = 0 '
|
||||
'WHERE user_id = ?', [user_id])
|
||||
return True
|
||||
return delete_success
|
||||
except Exception as e:
|
||||
logger.warn("Tautulli Users :: Unable to execute database query for delete: %s." % e)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue