fix: bug
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user