From 1cbb9280d2cbe93e2db5c09149d056625621c462 Mon Sep 17 00:00:00 2001 From: angerstoner Date: Tue, 18 Jan 2022 20:09:10 +0100 Subject: [PATCH] add lunchbox --- src/mensa.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mensa.py b/src/mensa.py index f0d5666..f6f2404 100644 --- a/src/mensa.py +++ b/src/mensa.py @@ -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()