From 6dc54b74805bca487cb03ac6ff84dd63cf70faa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Thu, 16 Jun 2022 12:33:05 +0200 Subject: Removed arbitrary distinctions between Aktionen and Essen in STW backend --- mensa/backends/studentenwerk.py | 6 ++++-- setup.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mensa/backends/studentenwerk.py b/mensa/backends/studentenwerk.py index 9c4cf02..fc80656 100644 --- a/mensa/backends/studentenwerk.py +++ b/mensa/backends/studentenwerk.py @@ -62,14 +62,16 @@ class Studentenwerk(IPlugin) : #raise NoMenuError from None if no_boring and category in boring : continue + if category == "Aktionen" : # remove arbitrary distinction between meal types. + category = "Essen" if not category in fl : fl[category] = [] sel = CSSSelector('.splMeal') meals = [e for e in sel(group)] for m in meals : namesel = CSSSelector('.bold') - nm = namesel(m)[0].text - if no_boring and "Nudelauswahl" in nm : + nm = namesel(m)[0].text.strip() + if no_boring and ( "Nudelauswahl" in nm or nm in ["Hartkäse gerieben", "Sauce & Dip Extra"] ): continue pricesel = CSSSelector('.col-md-3') veg = 0 diff --git a/setup.py b/setup.py index 8a0e624..c0eda21 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def read(fname): setup( name = "mensa", - version = "0.6.0", + version = "0.6.1", author = "Gabriel Pérez-Cerezo", author_email = "gabriel@gpcf.eu", description = ("A program that fetches menus from various restaurants. Pre-installed by default are various cafeterias around TU Berlin."), -- cgit v1.2.3