Commit f2ded871 authored by wang zhengwei's avatar wang zhengwei

fix bug

parent 3677ffc5
...@@ -99,7 +99,8 @@ tamp_diagnose_app_engine = create_engine( ...@@ -99,7 +99,8 @@ tamp_diagnose_app_engine = create_engine(
redis = redis.StrictRedis( redis = redis.StrictRedis(
host=config[env]['redis']['host'], host=config[env]['redis']['host'],
port=config[env]['redis']['port'], port=config[env]['redis']['port'],
db=config[env]['redis']['db'] db=config[env]['redis']['db'],
password=config[env]['redis']['password']
) )
# logging.basicConfig(level=logging.INFO, # logging.basicConfig(level=logging.INFO,
......
...@@ -64,7 +64,7 @@ class ReportHandlers(Resource): ...@@ -64,7 +64,7 @@ class ReportHandlers(Resource):
bucket = oss2.Bucket(auth, 'http://oss-cn-shanghai.aliyuncs.com', config[env]['oss']['env']) bucket = oss2.Bucket(auth, 'http://oss-cn-shanghai.aliyuncs.com', config[env]['oss']['env'])
# 生成下载文件的签名URL,有效时间为60s。 # 生成下载文件的签名URL,有效时间为60s。
path = bucket.sign_url('GET', config[env]['oss']['path'] + pdf_name, 60) path = bucket.sign_url('GET', config[env]['oss']['path'] + pdf_name, config[env]['oss']['validtime'])
with TAMP_SQL(tamp_diagnose_app_engine) as tamp_diagnose_app: with TAMP_SQL(tamp_diagnose_app_engine) as tamp_diagnose_app:
tamp_diagnose_app_session = tamp_diagnose_app.session tamp_diagnose_app_session = tamp_diagnose_app.session
sql = "update hold_report set update_time='{}', update_status='{}', file='{}' where ifa_id='{}' and customer_id='{}'".format( sql = "update hold_report set update_time='{}', update_status='{}', file='{}' where ifa_id='{}' and customer_id='{}'".format(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment