fix :enm/task 修改数据库连接
This commit is contained in:
parent
f09a8fe4cd
commit
50cdbf9428
|
@ -75,7 +75,7 @@ def db_ins_mplogx():
|
|||
从数据库转存到超表
|
||||
"""
|
||||
config = get_sysconfig()
|
||||
with DbConnection(config['enm1']['db_host'], config['enm1']['db_user'], config['enm1']['db_password'], config['enm']['db_database1']) as cursor:
|
||||
with DbConnection(config['enm1']['db_host'], config['enm1']['db_user'], config['enm1']['db_password'], config['enm1']['db_database1']) as cursor:
|
||||
bill_date = config['enm1'].get('bill_date', None)
|
||||
if bill_date is None:
|
||||
raise Exception("bill_date is None")
|
||||
|
|
Loading…
Reference in New Issue