bugfix
This commit is contained in:
parent
832afcfd0d
commit
248a5e11dc
@ -326,6 +326,9 @@ order by b.enabled_date desc"""
|
|||||||
times = 1
|
times = 1
|
||||||
unit = 1
|
unit = 1
|
||||||
ns = DictObject()
|
ns = DictObject()
|
||||||
|
for k, f in d.fields.items():
|
||||||
|
if f.type == 'factor':
|
||||||
|
ns[k] = float(config_data.get(k))
|
||||||
for k,spec_value in p.items():
|
for k,spec_value in p.items():
|
||||||
if k == 'formula':
|
if k == 'formula':
|
||||||
continue
|
continue
|
||||||
@ -339,8 +342,6 @@ order by b.enabled_date desc"""
|
|||||||
e = f'数据({config_data})没有({k})数据'
|
e = f'数据({config_data})没有({k})数据'
|
||||||
exception(e)
|
exception(e)
|
||||||
raise Exception(e)
|
raise Exception(e)
|
||||||
if f.type == 'factor':
|
|
||||||
ns[k] = float(data_value)
|
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
flg = check_value(f, spec_value, data_value)
|
flg = check_value(f, spec_value, data_value)
|
||||||
@ -355,8 +356,6 @@ order by b.enabled_date desc"""
|
|||||||
break
|
break
|
||||||
if p_ok and p.formula:
|
if p_ok and p.formula:
|
||||||
np = p.copy()
|
np = p.copy()
|
||||||
times = float(times)
|
|
||||||
unit = float(unit)
|
|
||||||
formula = p.formula
|
formula = p.formula
|
||||||
if not formula:
|
if not formula:
|
||||||
e = f'{p} not formula found'
|
e = f'{p} not formula found'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user