This commit is contained in:
Daniel
2026-03-16 18:07:01 +08:00
parent 3aa1a586e5
commit da63282a10
3 changed files with 197 additions and 69 deletions

View File

@@ -35,7 +35,7 @@ async def generate_quote_excel(
}
"""
async def _work() -> str:
def _work() -> str:
template = Path(template_path)
output = Path(output_path)
output.parent.mkdir(parents=True, exist_ok=True)
@@ -122,7 +122,7 @@ async def generate_contract_word(
}
"""
async def _work() -> str:
def _work() -> str:
template = Path(template_path)
output = Path(output_path)
output.parent.mkdir(parents=True, exist_ok=True)
@@ -148,7 +148,7 @@ async def generate_quote_pdf_from_data(
that can be sent to customers.
"""
async def _work() -> str:
def _work() -> str:
output = Path(output_pdf_path)
output.parent.mkdir(parents=True, exist_ok=True)
@@ -195,4 +195,3 @@ async def generate_quote_pdf_from_data(
return str(output)
return await asyncio.to_thread(_work)