mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
将api加入到插拔式配置
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import requests
|
||||
from config import api
|
||||
from config import settings
|
||||
from common.search import Search
|
||||
from config.log import logger
|
||||
|
||||
@@ -13,7 +13,7 @@ class GithubAPI(Search):
|
||||
self.domain = domain
|
||||
self.session = requests.Session()
|
||||
self.auth_url = 'https://api.github.com'
|
||||
self.token = api.github_api_token
|
||||
self.token = settings.github_api_token
|
||||
|
||||
def auth_github(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user