Skip to content

Commit

Permalink
make appuio logo path configurable
Browse files Browse the repository at this point in the history
to run smoothly in a container
  • Loading branch information
tobru committed Sep 10, 2024
1 parent 5fa0034 commit 3e8b66d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions contactform/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def __init__(self):
self.APPUIO_SIGNUP_URL = self.get_env_var(
"APPUIO_SIGNUP_URL", "https://www.appuio.ch/sign-up"
)
self.APPUIO_LOGO_PATH = self.get_env_var(
"APPUIO_LOGO_PATH", "/conferenceli/static/images/appuio-bw.png"
)
self.TAG_ID = None
self.CAMPAIGN_ID = None
self.SOURCE_ID = None
Expand Down
2 changes: 1 addition & 1 deletion contactform/label_voucher.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def print_voucher(form, voucher_code, config, printer_config):
)

hti = Html2Image(size=(590, 1050))
hti.load_file("contactform/static/images/appuio-bw.png")
hti.load_file(config.APPUIO_LOGO_PATH)
hti.load_file(qr_code_filename)
hti.browser.print_command = True if config.LOG_LEVEL == "DEBUG" else False
hti.screenshot(
Expand Down

0 comments on commit 3e8b66d

Please sign in to comment.