1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-12 17:07: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 77a7a29322
commit a0346b735b
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.