aboutsummaryrefslogtreecommitdiff
path: root/mensa/logic.py
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-09-03 09:18:28 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-09-03 09:18:28 +0200
commit3d4cb8555196a08347e373b6e542f80159155261 (patch)
tree9abb893a39da87f927d3180f27e787be619f3fed /mensa/logic.py
parent0e757e1d3822a0adeeb086fbf3e56c20cb1bdb40 (diff)
downloadmensa-3d4cb8555196a08347e373b6e542f80159155261.tar.gz
mensa-3d4cb8555196a08347e373b6e542f80159155261.tar.bz2
mensa-3d4cb8555196a08347e373b6e542f80159155261.zip
Cleanup, bump version to 0.4
This version breaks backend compatibility with 0.3.x; it turns the old list-based format into an OrderedDict-based format, sorted by category. This makes the renderers cleaner and easier to write.
Diffstat (limited to 'mensa/logic.py')
-rwxr-xr-xmensa/logic.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mensa/logic.py b/mensa/logic.py
index 1ae6a96..3089e36 100755
--- a/mensa/logic.py
+++ b/mensa/logic.py
@@ -4,7 +4,6 @@ from mensa import base
import urllib.error
import os
import sys
-from math import acos, radians, pi, cos, sin
from yapsy.PluginManager import PluginManager
try:
import multiprocessing
@@ -44,11 +43,11 @@ def get_food(restlist=False, no_parallel=False,**options) :
r = []
for k,i in sources :
r.append(i)
- foodl = get_food_parallel(r, ignore_nudelauswahl=True)
+ foodl = get_food_parallel(r, ignore_nudelauswahl=True, **options)
else :
for k,i in sources :
try :
- food = i.get_food(ignore_nudelauswahl=True)
+ food = i.get_food(ignore_nudelauswahl=True, **options)
foodl.append((i, food))
# print("*"*20+i.human_name+"*"*20+"\n"+base.formt(food))
except base.NoMenuError: