|
|
@ -24,7 +24,8 @@ MENSA_URL = { |
|
|
|
"linux": "goe2", |
|
|
|
"nord": "goe3", |
|
|
|
"italia": "goe4", |
|
|
|
"fasthochschule": "goe5" |
|
|
|
"fasthochschule": "goe5", |
|
|
|
"lunchbox": "goe7" |
|
|
|
} |
|
|
|
|
|
|
|
MENSA_NAME = { |
|
|
@ -33,7 +34,8 @@ MENSA_NAME = { |
|
|
|
"turm": "Turmmensa", |
|
|
|
"linux": "Linuxmensa", |
|
|
|
"italia": "Mensa Italia", |
|
|
|
"fasthochschule": "Bistro Fasthochschule" |
|
|
|
"fasthochschule": "Bistro Fasthochschule", |
|
|
|
"lunchbox": "Lunchbox (Nordmensa-Ersatz)" |
|
|
|
} |
|
|
|
|
|
|
|
HIDE_CATEGORIES_LIGHT = { |
|
|
@ -110,6 +112,7 @@ def mensa(update: Update, context: CallbackContext): |
|
|
|
return |
|
|
|
|
|
|
|
url = "https://app.mensaplan.de/api/11102/de.mensaplan.app.android.goettingen/%s.json" % MENSA_URL[which] |
|
|
|
|
|
|
|
request = requests.get(url) |
|
|
|
request.encoding = 'utf-8' |
|
|
|
data = request.json() |
|
|
|