From 7724ea9dc6fba32c4ecb517557190e196892bf99 Mon Sep 17 00:00:00 2001 From: angerstoner Date: Thu, 25 Feb 2021 00:39:50 +0100 Subject: [PATCH] mensa fix (still closed :() --- mensa.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mensa.py b/mensa.py index 77b047d..02f2a6f 100644 --- a/mensa.py +++ b/mensa.py @@ -72,10 +72,11 @@ MODES = { def linux_mensa(update: Update, context: CallbackContext): - mensa(update, context, ["linux"]) + context.args = ["linux"] + mensa(update, context) -def mensa(update: Update, context: CallbackContext, args: list[str]): +def mensa(update: Update, context: CallbackContext): if update.message.chat_id in DISABLED_GROUPS: return which = "zentral" @@ -84,7 +85,7 @@ def mensa(update: Update, context: CallbackContext, args: list[str]): auto_next_day = True today = datetime.datetime.now().date() - for arg in args: + for arg in context.args: arg = arg.lower() if arg in MENSA_NAME: which = arg