1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-17 17:57:23 +01:00

Fixed B007 (unused-loop-control-variable)

This commit is contained in:
Teal Dulcet
2025-01-12 07:00:47 -08:00
parent 854e8f4a85
commit 7ff9d0805e
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ for fn in glob.glob("/var/log/nginx/access.log*"):
# Aggregate by date.
by_date = { }
for date, ip in accesses:
for date, _ip in accesses:
by_date[date] = by_date.get(date, 0) + 1
# Since logs are rotated, store the statistics permanently in a JSON file.