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:
Anders Kaseorg
2024-07-14 12:47:33 -07:00
committed by Tim Abbott
parent 9a2c80dcb6
commit fe71eaa8f0
2 changed files with 2 additions and 3 deletions

View File

@@ -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]: