将api加入到插拔式配置

This commit is contained in:
Jing Ling
2020-08-14 13:00:39 +08:00
parent 091167acb2
commit e16b7dada0
23 changed files with 135 additions and 57 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
from config import api
from config import settings
from common.query import Query
from config.log import logger
@@ -10,7 +10,7 @@ class IPv4InfoAPI(Query):
self.module = 'Dataset'
self.source = 'IPv4InfoAPIQuery'
self.addr = ' http://ipv4info.com/api_v1/'
self.api = api.ipv4info_api_key
self.api = settings.ipv4info_api_key
def query(self):
"""