Skip to content

Commit aa428c2

Browse files
authored
Merge pull request #156 from SmoFlaDru/dev-benno
Fix bug in widget view code
2 parents de6fb32 + 93215da commit aa428c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spybot/views/views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ def widget_legacy(request):
104104
inactive_clients = []
105105
res = {}
106106
for session in sessions:
107-
user_name = session.tsuser_id.name
108-
channel_name = session.channel_id.name
107+
user_name = session.tsuser.name
108+
channel_name = session.channel.name
109109
if channel_name == "bei Bedarf anstupsen" or channel_name == "AFK":
110110
inactive_clients.append(user_name)
111111
else:

0 commit comments

Comments
 (0)