aboutsummaryrefslogtreecommitdiff
path: root/mensa/frontends/plain-text.py
diff options
context:
space:
mode:
Diffstat (limited to 'mensa/frontends/plain-text.py')
-rw-r--r--mensa/frontends/plain-text.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mensa/frontends/plain-text.py b/mensa/frontends/plain-text.py
index 501be54..7a31371 100644
--- a/mensa/frontends/plain-text.py
+++ b/mensa/frontends/plain-text.py
@@ -7,9 +7,13 @@ class TextRenderer(IPlugin) :
vegkeys = [ "", "Vegetarian", "Vegan" ]
for restaurant, food in foods :
cat = []
+ if not food :
+ continue
r = r+"*"*20+restaurant.human_name+"*"*20+"\n"#+base.formt(food)
food.sort(key=lambda foo: foo.category)
for i in food:
+ if options["only_veggie"] and options["only_veggie"] > i.veggie :
+ continue
if not i.category in cat :
cat.append(i.category)
if not i.category == None :