diff --git a/README.md b/README.md index dcaf5e5..9819422 100644 --- a/README.md +++ b/README.md @@ -109,16 +109,16 @@ You need to mount the file [`env.js`](frontend/public/environment/env.js) in t * `PRETIX_URL` * The url of the pretix instance * Defaults to: `None` -* `CHECKIN_LIST_ID` +* `PRETIX_CHECKIN_LIST_ID` * The id of the checkin list in pretix * Defaults to: `None` -* `ORGANIZER` +* `PRETIX_ORGANIZER` * The organizer shot name of the event in pretix * Defaults to: `None` -* `EVENT` +* `PRETIX_EVENT` * The event slug of the event in pretix * Defaults to: `None` -* `API_TOKEN` +* `PRETIX_API_TOKEN` * The api token of the pretix instance * Defaults to: `None` diff --git a/backend/util.py b/backend/util.py index 954ac56..ff2765d 100644 --- a/backend/util.py +++ b/backend/util.py @@ -74,14 +74,14 @@ pretix_url = os.environ.get("PRETIX_URL") if os.environ.get( "PRETIX_URL") else None -pretix_checkin_list_id = os.environ.get("CHECKIN_LIST_ID") if os.environ.get( - "CHECKIN_LIST_ID") else None -pretix_organizer = os.environ.get("ORGANIZER") if os.environ.get( - "ORGANIZER") else None -pretix_event = os.environ.get("EVENT") if os.environ.get( - "EVENT") else None -pretix_api_token = os.environ.get("API_TOKEN") if os.environ.get( - "API_TOKEN") else None +pretix_checkin_list_id = os.environ.get("PRETIX_CHECKIN_LIST_ID") if os.environ.get( + "PRETIX_CHECKIN_LIST_ID") else None +pretix_organizer = os.environ.get("PRETIX_ORGANIZER") if os.environ.get( + "PRETIX_ORGANIZER") else None +pretix_event = os.environ.get("PRETIX_EVENT") if os.environ.get( + "PRETIX_EVENT") else None +pretix_api_token = os.environ.get("PRETIX_API_TOKEN") if os.environ.get( + "PRETIX_API_TOKEN") else None tempfile_path = "tempfiles"