fix some error
This commit is contained in:
parent
7d761ad8f4
commit
7470ef8fee
11
config.py
11
config.py
@ -1,11 +1,14 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
redis_company_config = {'host': '10.10.4.8', 'port': 6379, 'db': 1,'passwd':'crs-9ltb97ds:i33dkxshh'}
|
||||
import os
|
||||
|
||||
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'}
|
||||
ad_list_interface_port=5014
|
||||
ad_list_interface_port = 5014
|
||||
BEGIN = '1999-01-01'
|
||||
END = '3000-01-01'
|
||||
|
||||
|
||||
#mysql_promotion_config = {'user': 'mytga', 'pswd': 'gzVwh4HGR68G', 'host': '10.10.3.5', 'db': 'games_report'}
|
||||
#redis_company_config = {'host': '10.10.3.10', 'port': 6379, 'db': 2}
|
||||
# mysql_promotion_config = {'user': 'mytga', 'pswd': 'gzVwh4HGR68G', 'host': '10.10.3.5', 'db': 'games_report'}
|
||||
# redis_company_config = {'host': '10.10.3.10', 'port': 6379, 'db': 2}
|
||||
|
@ -7,7 +7,8 @@ from config import redis_company_config, expire_time
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
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)
|
||||
expire_time = expire_time
|
||||
|
Loading…
x
Reference in New Issue
Block a user