Skip to content

Commit bd25970

Browse files
committed
refactor: model: Simplify top of presence aggregation.
1 parent ebb2462 commit bd25970

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
@@ -1231,10 +1231,9 @@ def _update_users_data_from_initial_data(self) -> None:
12311231
* UserStatus, an arbitrary one is chosen.
12321232
"""
12331233
aggregate_status: UserStatus = "offline"
1234-
for client in presences[email].items():
1235-
client_name = client[0]
1236-
status = client[1]["status"]
1237-
timestamp = client[1]["timestamp"]
1234+
for client_name, client_presence in presences[email].items():
1235+
status = client_presence["status"]
1236+
timestamp = client_presence["timestamp"]
12381237
if client_name == "aggregated":
12391238
continue
12401239
if (

0 commit comments

Comments
 (0)