fbuetler / asvz-bot

ASVZ Bot to enroll to lessons. Get a place when the registration opens or when a place gets free. Works for ETH, UZH and ZHAW students.
GNU General Public License v3.0
66 stars 25 forks source link

Adding optional selection based on training level #11

Closed CyprienHoelzl closed 2 years ago

CyprienHoelzl commented 2 years ago

This PR adds an "Optional argument" for choosing the training level …with one trainer on multiple levels in one single facility (i.e. in Polyterrasse).

Allows to restrict from: https://asvz.ch/426-sportfahrplan?f[0]=facility:45594&f[1]=sport:45627 (multiple choices available at one time) To: https://asvz.ch/426-sportfahrplan?f[0]=facility:45594&f[1]=sport:45627&f[2]=niveau:2104

When no --level argument is passed, the script functionality is unchanged.

fbuetler commented 2 years ago

This looks like a helpful feature! Thanks a lot for the contribution ;)