|
@@ -18,7 +18,7 @@ from sqlalchemy import create_engine
|
|
from sqlalchemy.orm import sessionmaker
|
|
from sqlalchemy.orm import sessionmaker
|
|
from urllib import parse
|
|
from urllib import parse
|
|
import pymysql
|
|
import pymysql
|
|
-
|
|
|
|
|
|
+from urllib import parse
|
|
class BMSReportError:
|
|
class BMSReportError:
|
|
def __init__(self):
|
|
def __init__(self):
|
|
pass
|
|
pass
|
|
@@ -98,7 +98,7 @@ class BMSReportError:
|
|
port=3306
|
|
port=3306
|
|
db='qx_cas'
|
|
db='qx_cas'
|
|
user='qx_algo_readonly'
|
|
user='qx_algo_readonly'
|
|
- password='qx@123456'
|
|
|
|
|
|
+ password = parse.quote_plus('qx@123456')
|
|
db_engine_1 = create_engine("mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8".format(user, password, host, port, db))
|
|
db_engine_1 = create_engine("mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8".format(user, password, host, port, db))
|
|
df_fidinfo = pd.read_sql("select * from fid_info ", db_engine_1)
|
|
df_fidinfo = pd.read_sql("select * from fid_info ", db_engine_1)
|
|
faltinfo=df_fidinfo[df_fidinfo['errCode']==platform_code.values[0]]['errChinese'].values[0]
|
|
faltinfo=df_fidinfo[df_fidinfo['errCode']==platform_code.values[0]]['errChinese'].values[0]
|