Add hidden user title (Full Name) column to users table

This commit is contained in:
JonnyWong16 2022-04-08 20:02:53 -07:00
parent aa6592eec7
commit 4862aee9a1
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
4 changed files with 26 additions and 7 deletions

View file

@ -131,6 +131,7 @@ class Users(object):
'users.username',
'(CASE WHEN users.friendly_name IS NULL OR TRIM(users.friendly_name) = "" \
THEN users.username ELSE users.friendly_name END) AS friendly_name',
'users.title',
'users.email',
'users.thumb AS user_thumb',
'users.custom_avatar_url AS custom_thumb',
@ -207,6 +208,7 @@ class Users(object):
'user_id': item['user_id'],
'username': item['username'],
'friendly_name': item['friendly_name'],
'title': item['title'],
'email': item['email'],
'user_thumb': user_thumb,
'plays': item['plays'],

View file

@ -1268,6 +1268,9 @@ class WebInterface(object):
"do_notify": "Checked",
"duration": 2998290,
"friendly_name": "Jon Snow",
"username": "LordCommanderSnow",
"title": "Jon Snow",
"email": "Jon.Snow.1337@CastleBlack.com",
"guid": "com.plexapp.agents.thetvdb://121361/6/1?lang=en",
"history_row_id": 1121,
"ip_address": "xxx.xxx.xxx.xxx",
@ -1306,6 +1309,7 @@ class WebInterface(object):
dt_columns = [("user_thumb", False, False),
("friendly_name", True, True),
("username", True, True),
("title", True, True),
("email", True, True),
("last_seen", True, False),
("ip_address", True, True),