aboutsummaryrefslogtreecommitdiff
path: root/mensa/backends/studentenwerk.py
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2022-06-16 12:33:05 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2022-06-16 12:33:05 +0200
commit6dc54b74805bca487cb03ac6ff84dd63cf70faa7 (patch)
treeba1cc2260854c8a52bc38971cf61e4e19d00fb7c /mensa/backends/studentenwerk.py
parent9bccb42bba3e59edc3c66dfcd2ce80557e977ba1 (diff)
downloadmensa-master.tar.gz
mensa-master.tar.bz2
mensa-master.zip
Removed arbitrary distinctions between Aktionen and Essen in STW backendHEADmaster
Diffstat (limited to 'mensa/backends/studentenwerk.py')
-rw-r--r--mensa/backends/studentenwerk.py6
1 files changed, 4 insertions, 2 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