From 9582677079906365dee29af16af5e6b198a49995 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 10 Sep 2024 16:39:18 +0200 Subject: [PATCH] put generated files in /tmp to make running in container happy --- contactform/label_raffle.py | 2 +- contactform/label_voucher.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contactform/label_raffle.py b/contactform/label_raffle.py index 150e149..db75e07 100644 --- a/contactform/label_raffle.py +++ b/contactform/label_raffle.py @@ -11,7 +11,7 @@ def print_raffle(form, config, printer_config): - label_filename = "label_raffle.png" + label_filename = "/tmp/label_raffle.png" label_css = """ body, html { diff --git a/contactform/label_voucher.py b/contactform/label_voucher.py index 3d7c61b..0a8907e 100644 --- a/contactform/label_voucher.py +++ b/contactform/label_voucher.py @@ -15,8 +15,8 @@ def print_voucher(form, voucher_code, config, printer_config): - label_filename = "label_voucher.png" - qr_code_filename = "appuio_voucher_qr.png" + label_filename = "/tmp/label_voucher.png" + qr_code_filename = "/tmp/appuio_voucher_qr.png" label_css = """ body, html {