From 59ed5215a0c8b56db07b781f678a7fef0317c9ce Mon Sep 17 00:00:00 2001 From: SakuraSa233 Date: Tue, 27 Nov 2018 13:54:09 +0800 Subject: [PATCH] optimize: remove unused variables and dependencies --- apiconfig.py | 10 +--------- requirements.txt | 8 ++------ 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/apiconfig.py b/apiconfig.py index d9e2368..077a4d5 100644 --- a/apiconfig.py +++ b/apiconfig.py @@ -14,12 +14,10 @@ SERVER_PUB_ADDR = '127.0.0.1' # mujson_mgr need this to generate ssr link API_INTERFACE = 'modwebapi' # glzjinmod, modwebapi +# Mod webapi WEBAPI_URL = 'https://zhaoj.in' WEBAPI_TOKEN = 'glzjin' -# mudb -MUDB_FILE = 'mudb.json' - # Mysql MYSQL_HOST = '127.0.0.1' MYSQL_PORT = 3306 @@ -32,12 +30,6 @@ MYSQL_SSL_CERT = '' MYSQL_SSL_KEY = '' -# API -API_HOST = '127.0.0.1' -API_PORT = 80 -API_PATH = '/mu/v2/' -API_TOKEN = 'abcdef' -API_UPDATE_TIME = 60 # Manager (ignore this) MANAGE_PASS = 'ss233333333' diff --git a/requirements.txt b/requirements.txt index e2fe400..cb1db56 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,2 @@ -urllib3==1.20 -cymysql==0.8.9 -requests==2.13.0 -pyOpenSSL==16.2.0 -ndg-httpsclient==0.4.2 -pyasn1==0.2.2 +cymysql==0.9.12 +requests==2.20.1