Update app.py
Browse files
app.py
CHANGED
|
@@ -2305,7 +2305,7 @@ def users():
|
|
| 2305 |
update_last_seen(data, username)
|
| 2306 |
|
| 2307 |
is_authenticated = 'username' in session
|
| 2308 |
-
unread_count = get_unread_count(data, username) if is_authenticated else
|
| 2309 |
private_unread_count = get_private_unread_count(data, username) if is_authenticated else 0
|
| 2310 |
user_count = len(data['users'])
|
| 2311 |
is_online = is_user_online(data, username) if is_authenticated else False
|
|
|
|
| 2305 |
update_last_seen(data, username)
|
| 2306 |
|
| 2307 |
is_authenticated = 'username' in session
|
| 2308 |
+
unread_count = get_unread_count(data, username) if is_authenticated else 0
|
| 2309 |
private_unread_count = get_private_unread_count(data, username) if is_authenticated else 0
|
| 2310 |
user_count = len(data['users'])
|
| 2311 |
is_online = is_user_online(data, username) if is_authenticated else False
|