-
Notifications
You must be signed in to change notification settings - Fork 21
fix: change API url to api.redcube.dev #320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -184,7 +184,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://api.betterhm.app/v1/capacity/MENSA_LOTHSTR", | ||
| "https://api.redcube.dev/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 = ( | ||
|
|
@@ -198,7 +198,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://api.betterhm.app/v1/capacity/MENSA_PASING", | ||
| "https://api.redcube.dev/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 = ( | ||
|
|
@@ -335,7 +335,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://api.betterhm.app/v1/capacity/STUCAFE_PASING", | ||
| "https://api.redcube.dev/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")), | ||
| ) | ||
| FMI_BISTRO = ( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new queue-status URLs duplicate the same base host/path across multiple enum entries. To reduce future churn when the host changes again, consider defining a single constant/base URL (or small helper) and building these URLs from it instead of repeating the full string in each entry.