mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
ruff: Fix FURB148 enumerate
index or value is unused.
This is a preview rule, not yet enabled by default. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
9a2c80dcb6
commit
fe71eaa8f0
@@ -226,7 +226,7 @@ def get_remote_server_activity(request: HttpRequest) -> HttpResponse:
|
||||
row.append(user_counts.guest_user_count)
|
||||
|
||||
# Format column data and add total row
|
||||
for i, col in enumerate(cols):
|
||||
for i in range(len(cols)):
|
||||
if i == LAST_AUDIT_LOG_DATE:
|
||||
fix_rows(rows, i, format_optional_datetime)
|
||||
if i in [MOBILE_USER_COUNT, MOBILE_PUSH_COUNT]:
|
||||
|
Reference in New Issue
Block a user