Skip to content

Commit 7ec649a

Browse files
committed
Update to Oicana 0.3.0
1 parent 474a987 commit 7ec649a

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = { text = "MIT" }
88
dependencies = [
99
"fastapi>=0.115.0",
1010
"uvicorn[standard]>=0.32.0",
11-
"oicana>=0.2.0",
11+
"oicana>=0.3.0",
1212
"python-multipart>=0.0.12",
1313
]
1414

routers/certificates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def create_certificate(request: CreateCertificate):
4444
json_inputs = {"certificate": json.dumps({"name": request.name})}
4545

4646
try:
47-
pdf_bytes = template.compile(
47+
pdf_bytes = template.export(
4848
json_inputs=json_inputs,
4949
export={"format": "pdf"},
5050
mode=CompilationMode.PRODUCTION,

routers/templates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ async def compile_template(
159159
blob_inputs[blob_input.key] = BlobInput(data=blob_data)
160160

161161
try:
162-
pdf_bytes = template.compile(
162+
pdf_bytes = template.export(
163163
json_inputs=json_inputs,
164164
blob_inputs=blob_inputs,
165165
export={"format": "pdf"},
@@ -214,7 +214,7 @@ async def preview_template(
214214
blob_inputs[blob_input.key] = BlobInput(data=blob_data)
215215

216216
try:
217-
png_bytes = template.compile(
217+
png_bytes = template.export(
218218
json_inputs=json_inputs,
219219
blob_inputs=blob_inputs,
220220
export={"format": "png", "pixelsPerPt": 1.0},

uv.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)