This commit is contained in:
yumoqing 2026-03-24 14:26:43 +08:00
parent e81b3679cd
commit fe9cfeef65
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ def write_pattern_xlsx(fields: dict) -> str:
opt_id = opt_id + 1
c += 1
fs = FileStorage()
fp = fs._name2path(f'pricing_{getID}.xlsx')
fp = fs._name2path(f'pricing_{getID()}.xlsx')
wb.save(fp)
return fp

View File

@ -1,3 +1,3 @@
debug(f'download_pricing_pattern.dspy{params_kw=}')
fp = await write_pricing_patten(request, params_kw.ppid)
return await file_response(request, fp)
return await file_response(request, fp, download=True)