mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Clear user friendly name if equal to username
This commit is contained in:
parent
98433a7c54
commit
285fa3a0f5
2 changed files with 12 additions and 0 deletions
|
@ -361,6 +361,10 @@ class Users(object):
|
|||
if str(user_id).isdigit():
|
||||
monitor_db = database.MonitorDatabase()
|
||||
|
||||
user = monitor_db.select_single('SELECT username FROM users WHERE user_id = ?', [user_id])
|
||||
if user.get('username') == friendly_name:
|
||||
friendly_name = None
|
||||
|
||||
key_dict = {'user_id': user_id}
|
||||
value_dict = {'friendly_name': friendly_name,
|
||||
'custom_avatar_url': custom_thumb,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue