File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ def _get_f2b_data(db_path):
99 con = sqlite3 .connect (db_path )
1010 cur = con .cursor ()
1111 results = cur .execute ("""
12- SELECT jails.name,
13- COUNT(bans .ip) AS bans,
14- (SELECT DISTINCT bans .ip from bans where jails.name = bans .jail ORDER BY timeofban DESC) as last_ban,
15- (SELECT DISTINCT bans .data from bans where jails.name = bans .jail ORDER BY timeofban DESC) as data
16- FROM jails
17- LEFT JOIN bans ON jails.name=bans .jail
12+ SELECT jails.name,
13+ COUNT(bips .ip) AS bans,
14+ (SELECT DISTINCT bips .ip from bips where jails.name = bips .jail ORDER BY timeofban DESC) as last_ban,
15+ (SELECT DISTINCT bips .data from bips where jails.name = bips .jail ORDER BY timeofban DESC) as data
16+ FROM jails
17+ LEFT JOIN bips ON jails.name=bips .jail
1818 GROUP BY jails.name
1919 """ ).fetchall ()
2020 con .close ()
You can’t perform that action at this time.
0 commit comments