From 20e0025c268232991c0a4d6e78599c02ad803355 Mon Sep 17 00:00:00 2001 From: klux2 Date: Mon, 8 Jul 2019 10:23:33 +0200 Subject: [PATCH] replaced strip with rstrip to only remove ingredient numbers from end of string Signed-off-by: klux2 --- HSMensaW_botA.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HSMensaW_botA.py b/HSMensaW_botA.py index 672d23e..6f9aa01 100644 --- a/HSMensaW_botA.py +++ b/HSMensaW_botA.py @@ -223,7 +223,7 @@ async def get_essen(only_today: bool) -> None: for i in menus: kategorie = i.findall("type")[0].text - name = i.findall("description")[0].text.strip("()1234567890, ") + name = i.findall("description")[0].text.rstrip("()1234567890, ") try: preis = float(i.findall("./prices/price[label='Studenten']/value")[0].text.replace(",", ".")) except ValueError: