mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Fix importing Plex usernames
* Fixes #1710 * Also import the user title (Full Name)
This commit is contained in:
parent
e996c4b375
commit
aa6592eec7
3 changed files with 19 additions and 3 deletions
|
@ -84,6 +84,10 @@ def refresh_users():
|
|||
else:
|
||||
item['custom_avatar_url'] = item['thumb']
|
||||
|
||||
# Check if title is the same as the username
|
||||
if item['title'] == item['username']:
|
||||
item['title'] = None
|
||||
|
||||
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