bug fix: space needed before language parameter when ordering meal plan

Signed-off-by: Konrad <klux2@hs-mittweida.de>
This commit is contained in:
Konrad 2019-09-27 21:21:47 +02:00
parent a751903eee
commit 9255527662

View file

@ -118,9 +118,9 @@ class HSMensaW(telepot.aio.helper.ChatHandler):
await send_message(bot_obj=bot, chat_id=chat_id,
msg="Für heute ist leider kein Speiseplan verfügbar.")
else:
if text.endswith("en"):
if text.endswith(" en"):
language = Language.ENGLISH
elif text.endswith("de"):
elif text.endswith(" de"):
language = Language.GERMAN
else:
if chat_id in ids.keys():