from Constants import *


class CanteenSlotType(object):

    @staticmethod
    def getIds(name):
        name = name.lower()
        ids = []
        if "strana" in name or "nationen" in name:
            if "mensa" in name:
                ids.append(ID_MENSA_STRANA)
            elif "cafeteria" in name:
                ids.append(ID_CAFETERIA_STRANA)
            else:
                ids.extend([ID_MENSA_STRANA, ID_CAFETERIA_STRANA])
        elif "reichen" in name:
            if "mensa" in name:
                ids.append(ID_MENSA_REICHENHAIN)
            elif "cafeteria" in name:
                ids.append(ID_CAFETERIA_REICHENHAIN)
            else:
                ids.extend([ID_MENSA_REICHENHAIN, ID_CAFETERIA_REICHENHAIN])
        return ids

@@ -91,16 +91,63 @@
 (name):%0A
+        if name is None:%0A            return %5B%5D%0A
         

check if canteen has been supplied