From 13e9344511998d26e11c2b4e11535171d5dcd40d Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 10 Sep 2024 16:57:54 +0200 Subject: [PATCH] fix label image path --- contactform/label_raffle.py | 2 +- contactform/label_voucher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contactform/label_raffle.py b/contactform/label_raffle.py index e612789..afe3b94 100644 --- a/contactform/label_raffle.py +++ b/contactform/label_raffle.py @@ -44,7 +44,7 @@ def print_raffle(form, config, printer_config): save_as=label_filename, ) - label_image = open(f"/tmp/{label_filename}", "rb") + label_image = open(f"/tmp/html2image/{label_filename}", "rb") parameters = LabelParameters( configuration=printer_config, diff --git a/contactform/label_voucher.py b/contactform/label_voucher.py index 6eb3502..bb18aaf 100644 --- a/contactform/label_voucher.py +++ b/contactform/label_voucher.py @@ -72,7 +72,7 @@ def print_voucher(form, voucher_code, config, printer_config): save_as=label_filename, ) - label_image = open(f"/tmp/{label_filename}", "rb") + label_image = open(f"/tmp/html2image/{label_filename}", "rb") parameters = LabelParameters( configuration=printer_config,