Skip to content

Commit

Permalink
added pretix prefix to env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
themrphantom committed Nov 4, 2024
1 parent bad1f79 commit b3654b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
16 changes: 8 additions & 8 deletions backend/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b3654b2

Please sign in to comment.