From 6000a3a6e5acf073a224e74be590407616eeeffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Tue, 6 Mar 2018 11:05:23 +0100 Subject: --no-parallel option to fix studentenwerk behaviour, option to show only student prices to avoid clutter --- mensa/frontends/html.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mensa/frontends/html.py') diff --git a/mensa/frontends/html.py b/mensa/frontends/html.py index 8ffec37..8a5618f 100644 --- a/mensa/frontends/html.py +++ b/mensa/frontends/html.py @@ -14,6 +14,10 @@ class HTMLRenderer(IPlugin) : r = r+"

"+esc(restaurant.human_name)+"

"+"\n"#+base.formt(food) food.sort(key=lambda foo: foo.category) for i in food: + if options["only_student_prices"] : + price = base.only_student_prices(i.price) + else: + price = i.price if options["only_veggie"] and options["only_veggie"] > i.veggie : continue if not i.category in cat : @@ -22,7 +26,7 @@ class HTMLRenderer(IPlugin) : cat.append(i.category) if not i.category == None : r=r+ "

"+esc(i.category)+"

" -- cgit v1.2.3