bugfix
This commit is contained in:
parent
f81bc6d112
commit
1101fed2f0
@ -30,7 +30,10 @@ def write_pattern_xlsx(fields: dict) -> str:
|
||||
opt_id = 0
|
||||
for f in fields.values():
|
||||
ws_data.cell(row=1, column=c, value=f.label or f.name)
|
||||
if f.options:
|
||||
if f.type == 'bool':
|
||||
create_options(ws_data, c, hidden, opt_id, ['=TRUE()', '=FALSE()'])
|
||||
opt_id = opt_id + 1
|
||||
elif f.options:
|
||||
create_options(ws_data, c, hidden, opt_id, f.options)
|
||||
opt_id = opt_id + 1
|
||||
c += 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user