Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ruff: Fix SIM113 Use `enumerate()` for index variable in `for` loop.
Anders Kaseorgbad3756181fd
diff --git a/zilencer/management/commands/populate_db.py b/zilencer/management/commands/populate_db.pyindex acf25f50dae..f8c7831e42e 100644--- a/zilencer/management/commands/populate_db.py+++ b/zilencer/management/commands/populate_db.py@@ -760,9 +760,7 @@ class Command(ZulipBaseCommand):event_time = timezone_now()all_subscription_logs: list[RealmAuditLog] = []- i = 0- for profile, recipient in subscriptions_list:- i += 1+ for i, (profile, recipient) in enumerate(subscriptions_list, 1):color = STREAM_ASSIGNMENT_COLORS[i % len(STREAM_ASSIGNMENT_COLORS)]s = Subscription(recipient=recipient,