This commit is contained in:
Fyodor Alyokhin 2026-02-02 13:21:04 +01:00
parent 22e996640d
commit 75c374dedf
6 changed files with 280 additions and 17 deletions

View file

@ -3,10 +3,13 @@ ANNY_BASE_URL = "https://anny.eu"
BOOKING_API_BASE = "https://b.anny.eu/api/v1"
CHECKOUT_FORM_API = "https://b.anny.eu/api/ui/checkout-form"
RESOURCE_URL = f"{BOOKING_API_BASE}/resources/1-lehrbuchsammlung-eg-und-1-og/children"
SERVICE_ID = "449"
SERVICE_ID = "601"
# SERVICE_ID = "449"
RESOURCE_ID = None # "5957" # Will be set dynamically if None, else use the given ID
RESOURCE_ID =15994
TIMEZONE = "Europe/Berlin"
SSO_PROVIDER = "kit" # Available: kit (add more in auth/providers/)
# SSO_PROVIDER = "kit" # Available: kit (add more in auth/providers/)
SSO_PROVIDER = "tum" # Available: kit (add more in auth/providers/)
DEFAULT_HEADERS = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0',
@ -17,15 +20,19 @@ DEFAULT_HEADERS = {
# Booking time slots (in order of priority)
BOOKING_TIMES = [
{
'start': '14:00:00',
'end': '19:00:00'
},
{
'start': '09:00:00',
'end': '13:00:00'
},
{
'start': '20:00:00',
'end': '23:45:00'
'start': '12:00:00',
'end': '22:00:00'
},
# {
# 'start': '22:30:00',
# 'end': '23:30:00'
# },
# {
# 'start': '09:00:00',
# 'end': '13:00:00'
# },
# {
# 'start': '20:00:00',
# 'end': '23:45:00'
# },
]