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