alican / elements-wellpass-registration

A simple script to register a slot for elements fitness for automation
12 stars 25 forks source link

Script does not fetch Studio ID from Repository Variables #2

Closed chuesker closed 9 months ago

chuesker commented 1 year ago

I specified the Repository variable "ELEMENTS_STUDIO_ID" with the value of 65 (Balanstraße). image

When executing the script, it always falls back to the default value (62). Am I doing anything wrong? If yes, one may update the readme file to explain the proper process. Of course, I could overwrite the default value to 65, but this is obviously not the intended way (Side note: I am quite new to GitHub and therefore slightly inexperienced with all functionalities and best-practices).

Script: ELEMENTS_STUDIO_ID = os.environ.get('ELEMENTS_STUDIO_ID', 62)

Execute script:

Run python elements.py
https://slots.elements.com/sheet.php?action=register&course_sheet_id=341376&studio_id=62
Success!
alican commented 1 year ago

It looks like that the Repository variables arent passed to the scripts environment. I didn't know that. You can store the ELEMENTS_STUDIO_ID as secret, than it should pass the value to the environment like the password/email