replaced strip with rstrip to only remove ingredient numbers from end of string

Signed-off-by: klux2 <k.lux.gm@gmail.com>
This commit is contained in:
klux2 2019-07-08 10:23:33 +02:00
parent 596dd035bf
commit 20e0025c26

View file

@ -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: