This commit is contained in:
yumoqing 2026-03-27 14:04:03 +08:00
parent f7a7d6ca48
commit 8a763c13ea
2 changed files with 4 additions and 0 deletions

View File

@ -330,6 +330,8 @@ order by b.enabled_date desc"""
if f.type == 'factor':
ns[k] = float(config_data.get(k))
for k,spec_value in p.items():
if spec_value is None:
continue
if k == 'formula':
continue
f = d.fields.get(k)

View File

@ -29,6 +29,8 @@ def write_pattern_xlsx(name: str, fields: dict) -> str:
c = 1
opt_id = 0
for f in fields.values():
if f.type == 'factor':
continue
ws_data.cell(row=1, column=c, value=f.label or f.name)
if f.type == 'bool':
create_options(ws_data, c, hidden, opt_id, ['=TRUE()', '=FALSE()'])