def GET(self, level):
        args = {}
        if level and level in ['info', 'debug', 'warning', 'error', 'critical']:
            args = {'level':level}

        def fill_missing(el):
            if not el in 'host':
                el['host'] = '(unknow)'
            return el            
        logs = map(fill_missing, db.find(args, limit=100).sort('$natural', DESCENDING))

        return render.index(logs)
dataset/ETHPy150Open andreisavu/mongodb-log/tools/webui/webui.py/index.GET/swapped operands of `in`