From 8acae6c5d604de683e4d27ad27477ad790fb88fe Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Mon, 11 May 2020 20:21:27 +0800 Subject: [PATCH] Update database.py --- common/database.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/database.py b/common/database.py index 7f9a968..fdf1dec 100644 --- a/common/database.py +++ b/common/database.py @@ -147,7 +147,7 @@ class Database(object): """ Clear the table - :param str table_name: 表名 + :param str table_name: table name """ table_name = table_name.replace('.', '_') logger.log('TRACE', f'Clearing data in table {table_name}') @@ -230,9 +230,9 @@ class Database(object): """ table_name = table_name.replace('.', '_') query = f'select id, type, new, alive, request, resolve, url, ' \ - f'subdomain, level, cname, content, public, port, status, ' \ - f'reason, title, banner, times, ttl, resolver, module, ' \ - f'source, elapse, find, brute, valid from "{table_name}"' + f'subdomain, level, cname, content, public, port, status, ' \ + f'reason, title, banner, times, ttl, resolver, module, ' \ + f'source, elapse, find, brute, valid from "{table_name}"' if alive and limit: if limit in ['resolve', 'request']: where = f' where {limit} = 1'