Merge pull request #763 from Sean-Der/round-banip-time

BF: Round timeofban before inserting into the persistant database
pull/769/head
Steven Hiscocks 11 years ago
commit 8e0a59f04d

@ -368,7 +368,7 @@ class Fail2BanDb(object):
#TODO: Implement data parts once arbitrary match keys completed
cur.execute(
"INSERT INTO bans(jail, ip, timeofban, data) VALUES(?, ?, ?, ?)",
(jail.name, ticket.getIP(), ticket.getTime(),
(jail.name, ticket.getIP(), round(ticket.getTime()),
{"matches": ticket.getMatches(),
"failures": ticket.getAttempt()}))

Loading…
Cancel
Save