mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-08-04 04:20:53 +00:00
Fixed SIM222 (expr-or-true): Use True
instead of ... or True
This commit is contained in:
parent
bddc2385db
commit
935a0c91bd
@ -497,7 +497,7 @@ def add_login(user, date, protocol_name, host, collector):
|
||||
data["totals_by_protocol"][protocol_name] += 1
|
||||
data["totals_by_protocol_and_host"][(protocol_name, host)] += 1
|
||||
|
||||
if host not in {"127.0.0.1", "::1"} or True:
|
||||
if True:
|
||||
data["activity-by-hour"][protocol_name][date.hour] += 1
|
||||
|
||||
collector["logins"][user] = data
|
||||
|
Loading…
Reference in New Issue
Block a user