aboutsummaryrefslogtreecommitdiff
path: root/mensa/logic.py
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-03-06 11:05:23 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-03-06 11:05:23 +0100
commit6000a3a6e5acf073a224e74be590407616eeeffb (patch)
tree129c4fd932a749a92d845ba2521c250438c0bb95 /mensa/logic.py
parent7355b3e3503ca95e1ee11ebb814c3f2551143a86 (diff)
downloadmensa-6000a3a6e5acf073a224e74be590407616eeeffb.tar.gz
mensa-6000a3a6e5acf073a224e74be590407616eeeffb.tar.bz2
mensa-6000a3a6e5acf073a224e74be590407616eeeffb.zip
--no-parallel option to fix studentenwerk behaviour, option to show only student prices to avoid clutter
Diffstat (limited to 'mensa/logic.py')
-rwxr-xr-xmensa/logic.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mensa/logic.py b/mensa/logic.py
index 75b2465..cae2421 100755
--- a/mensa/logic.py
+++ b/mensa/logic.py
@@ -28,9 +28,10 @@ def init_renderers():
pluginInfo.plugin_object.register_renderer()
-def get_food(restlist=False, **options) :
+def get_food(restlist=False, no_parallel=False,**options) :
foodl = []
- if parallel :
+
+ if parallel and not no_parallel:
r = []
for k,i in base.foodsources.items() :
if restlist and not i.name in restlist :