Skip to content

Commit 6507d48

Browse files
committed
refactor: model: Simplify top of presence aggregation.
1 parent ed624a7 commit 6507d48

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

zulipterminal/model.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,10 +1193,9 @@ def _update_users_data_from_initial_data(self) -> None:
11931193
* UserStatus, an arbitrary one is chosen.
11941194
"""
11951195
aggregate_status: UserStatus = "offline"
1196-
for client in presences[email].items():
1197-
client_name = client[0]
1198-
status = client[1]["status"]
1199-
timestamp = client[1]["timestamp"]
1196+
for client_name, client_presence in presences[email].items():
1197+
status = client_presence["status"]
1198+
timestamp = client_presence["timestamp"]
12001199
if client_name == "aggregated":
12011200
continue
12021201
if (server_timestamp - timestamp) < OFFLINE_THRESHOLD_SECS:

0 commit comments

Comments
 (0)