fix some error
This commit is contained in:
parent
7d761ad8f4
commit
7470ef8fee
@ -1,6 +1,9 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
redis_company_config = {'host': '10.10.4.8', 'port': 6379, 'db': 1,'passwd':'crs-9ltb97ds:i33dkxshh'}
|
import os
|
||||||
|
|
||||||
expire_time = 7200
|
expire_time = 7200
|
||||||
|
paswd = os.getenv('adpwd')
|
||||||
|
redis_company_config = {'host': '10.10.4.8', 'port': 6379, 'db': 1, 'passwd': paswd}
|
||||||
mysql_promotion_config = {'user': 'ad', 'pswd': 'config.py', 'host': '10.10.3.5', 'db': 'ad'}
|
mysql_promotion_config = {'user': 'ad', 'pswd': 'config.py', 'host': '10.10.3.5', 'db': 'ad'}
|
||||||
ad_list_interface_port = 5014
|
ad_list_interface_port = 5014
|
||||||
BEGIN = '1999-01-01'
|
BEGIN = '1999-01-01'
|
||||||
|
@ -7,7 +7,8 @@ from config import redis_company_config, expire_time
|
|||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
pool = redis.ConnectionPool(host=redis_company_config['host'], port=redis_company_config['port'],
|
pool = redis.ConnectionPool(host=redis_company_config['host'], port=redis_company_config['port'],
|
||||||
db=redis_company_config['db'], decode_responses=True)
|
password=redis_company_config['passwd'], db=redis_company_config['db'],
|
||||||
|
decode_responses=True)
|
||||||
|
|
||||||
my_redis = redis.Redis(connection_pool=pool)
|
my_redis = redis.Redis(connection_pool=pool)
|
||||||
expire_time = expire_time
|
expire_time = expire_time
|
||||||
|
Loading…
x
Reference in New Issue
Block a user