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:
parent
596dd035bf
commit
20e0025c26
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ async def get_essen(only_today: bool) -> None:
|
||||||
|
|
||||||
for i in menus:
|
for i in menus:
|
||||||
kategorie = i.findall("type")[0].text
|
kategorie = i.findall("type")[0].text
|
||||||
name = i.findall("description")[0].text.strip("()1234567890, ")
|
name = i.findall("description")[0].text.rstrip("()1234567890, ")
|
||||||
try:
|
try:
|
||||||
preis = float(i.findall("./prices/price[label='Studenten']/value")[0].text.replace(",", "."))
|
preis = float(i.findall("./prices/price[label='Studenten']/value")[0].text.replace(",", "."))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
Loading…
Reference in a new issue