BF: Round timeofban before inserting into the persistant database

pull/763/head
Sean DuBois 2014-07-17 21:57:52 +00:00
parent c7de888cd3
commit ac9fa90625
1 changed files with 1 additions and 1 deletions

View File

@ -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()}))