diff options
Diffstat (limited to 'mensa/frontends/plain-text.py')
-rw-r--r-- | mensa/frontends/plain-text.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mensa/frontends/plain-text.py b/mensa/frontends/plain-text.py index 9147133..36b2a34 100644 --- a/mensa/frontends/plain-text.py +++ b/mensa/frontends/plain-text.py @@ -10,6 +10,9 @@ class TextRenderer(IPlugin) : if not food : continue r = r+"*"*20+restaurant.human_name+"*"*20+"\n"#+base.formt(food) + if "pos" in options and restaurant.pos and "dist" in options : + ## display distance to restaurant + r=r+"Distance: %.2f km\n" % base.dist(options["pos"], restaurant.pos) food.sort(key=lambda foo: foo.category) for i in food: if options["only_student_prices"] : |