mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 13:41:15 -07:00
Fix managed users no username
This commit is contained in:
parent
dd389b0f94
commit
a9860fe62a
1 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,10 @@ def refresh_users():
|
|||
if item['title'] == item['username']:
|
||||
item['title'] = None
|
||||
|
||||
# Check if username is blank (Managed Users)
|
||||
if not item['username']:
|
||||
item['username'] = item['title']
|
||||
|
||||
monitor_db.upsert('users', key_dict=keys_dict, value_dict=item)
|
||||
|
||||
query = 'UPDATE users SET is_active = 0 WHERE user_id NOT IN ({})'.format(', '.join(['?'] * len(user_ids)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue