fix generate contract path and add alembic to dependencies
Some checks failed
Deploy Amap / deploy (push) Failing after 22s

This commit is contained in:
2026-02-19 23:50:00 +01:00
parent 242e29c8a6
commit a854fc028e
2 changed files with 2 additions and 1 deletions

View File

@@ -63,3 +63,4 @@ weasyprint==68.1
webencodings==0.5.1
websockets==16.0
zopfli==0.4.1
alembic==1.18.4

View File

@@ -15,7 +15,7 @@ def generate_html_contract(
recurrent_price: float,
total_price: float
):
template_dir = pathlib.Path().resolve() + "/src/contracts/templates"
template_dir = pathlib.Path("./src/contracts/templates").resolve()
template_loader = jinja2.FileSystemLoader(searchpath=template_dir)
template_env = jinja2.Environment(loader=template_loader, autoescape=jinja2.select_autoescape(["html", "xml"]))
template_file = "layout.html"