bugfix
This commit is contained in:
parent
e81b3679cd
commit
fe9cfeef65
@ -35,7 +35,7 @@ def write_pattern_xlsx(fields: dict) -> str:
|
|||||||
opt_id = opt_id + 1
|
opt_id = opt_id + 1
|
||||||
c += 1
|
c += 1
|
||||||
fs = FileStorage()
|
fs = FileStorage()
|
||||||
fp = fs._name2path(f'pricing_{getID}.xlsx')
|
fp = fs._name2path(f'pricing_{getID()}.xlsx')
|
||||||
wb.save(fp)
|
wb.save(fp)
|
||||||
return fp
|
return fp
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
debug(f'download_pricing_pattern.dspy{params_kw=}')
|
debug(f'download_pricing_pattern.dspy{params_kw=}')
|
||||||
fp = await write_pricing_patten(request, params_kw.ppid)
|
fp = await write_pricing_patten(request, params_kw.ppid)
|
||||||
return await file_response(request, fp)
|
return await file_response(request, fp, download=True)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user