mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
将api加入到插拔式配置
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from config import api
|
||||
from config import settings
|
||||
from common.query import Query
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ class SpyseAPI(Query):
|
||||
self.domain = domain
|
||||
self.module = 'Dataset'
|
||||
self.source = 'SpyseAPIQuery'
|
||||
self.token = api.spyse_api_token
|
||||
self.token = settings.spyse_api_token
|
||||
|
||||
def query(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user