mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
解决批量获取子域问题
This commit is contained in:
@@ -13,10 +13,10 @@ from config import logger
|
||||
|
||||
class Database(object):
|
||||
def __init__(self, db_path=None):
|
||||
self.conn = self.get_connection(db_path)
|
||||
self.conn = self.get_conn(db_path)
|
||||
|
||||
@staticmethod
|
||||
def get_connection(db_path):
|
||||
def get_conn(db_path):
|
||||
"""
|
||||
获取数据库对象
|
||||
|
||||
@@ -205,3 +205,6 @@ class Database(object):
|
||||
logger.log('ERROR', e)
|
||||
else:
|
||||
return rows
|
||||
|
||||
def close(self):
|
||||
self.conn.close()
|
||||
|
||||
Reference in New Issue
Block a user