From c9423afe74563e9d3d86ae2038a5237740f492b5 Mon Sep 17 00:00:00 2001 From: Moritz Huber <2nd@moritzhuber.de> Date: Mon, 21 Oct 2024 18:50:38 +0200 Subject: [PATCH 1/2] Add capacity api for some hochschul-canteens --- src/entities.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entities.py b/src/entities.py index bdb35c3cf..571a9269d 100644 --- a/src/entities.py +++ b/src/entities.py @@ -185,7 +185,7 @@ def __init__(self, long_name: str, location: Location, url_id: int, queue_status "Mensa Lothstraße", Location("Lothstraße 13d, München", 48.153989, 11.552424), 431, - None, + "https://beta.api.betterhm.app/v1/capacity/MENSA_LOTHSTR", OpenHours(("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00")), ) MENSA_MARTINSRIED = ( @@ -199,7 +199,7 @@ def __init__(self, long_name: str, location: Location, url_id: int, queue_status "Mensa Pasing", Location("Am Stadtpark 20, München", 48.141568, 11.451119), 432, - None, + "https://beta.api.betterhm.app/v1/capacity/MENSA_PASING", OpenHours(("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00")), ) MENSA_WEIHENSTEPHAN = ( @@ -336,7 +336,7 @@ def __init__(self, long_name: str, location: Location, url_id: int, queue_status "StuCafé Pasing", Location("Am Stadtpark 20, München", 48.141568, 11.451119), 534, - None, + "https://beta.api.betterhm.app/v1/capacity/STUCAFE_PASING", OpenHours(("07:45", "16:15"), ("07:45", "16:15"), ("07:45", "16:00"), ("07:45", "16:00"), ("07:45", "14:30")), ) IPP_BISTRO = ( From 2362b5b1fe1d773e81b95f470511ed5ec1159a66 Mon Sep 17 00:00:00 2001 From: Moritz Huber <2nd@moritzhuber.de> Date: Wed, 23 Oct 2024 13:05:55 +0200 Subject: [PATCH 2/2] remove beta from api --- src/entities.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entities.py b/src/entities.py index 571a9269d..1fed6954e 100644 --- a/src/entities.py +++ b/src/entities.py @@ -185,7 +185,7 @@ def __init__(self, long_name: str, location: Location, url_id: int, queue_status "Mensa Lothstraße", Location("Lothstraße 13d, München", 48.153989, 11.552424), 431, - "https://beta.api.betterhm.app/v1/capacity/MENSA_LOTHSTR", + "https://api.betterhm.app/v1/capacity/MENSA_LOTHSTR", OpenHours(("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00")), ) MENSA_MARTINSRIED = ( @@ -199,7 +199,7 @@ def __init__(self, long_name: str, location: Location, url_id: int, queue_status "Mensa Pasing", Location("Am Stadtpark 20, München", 48.141568, 11.451119), 432, - "https://beta.api.betterhm.app/v1/capacity/MENSA_PASING", + "https://api.betterhm.app/v1/capacity/MENSA_PASING", OpenHours(("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00")), ) MENSA_WEIHENSTEPHAN = ( @@ -336,7 +336,7 @@ def __init__(self, long_name: str, location: Location, url_id: int, queue_status "StuCafé Pasing", Location("Am Stadtpark 20, München", 48.141568, 11.451119), 534, - "https://beta.api.betterhm.app/v1/capacity/STUCAFE_PASING", + "https://api.betterhm.app/v1/capacity/STUCAFE_PASING", OpenHours(("07:45", "16:15"), ("07:45", "16:15"), ("07:45", "16:00"), ("07:45", "16:00"), ("07:45", "14:30")), ) IPP_BISTRO = (