Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/b/n/bnw-HEAD/bnw/handlers/command_clubs.py   bnw(Download)
    if rebuild:
        CLUBS_LAST_REBUILD = time.time()
        result = yield objs.Message.map_reduce(CLUBS_MAP, CLUBS_REDUCE, out='clubs')
    if (not rebuild) or result:
        clubs = list(x.doc for x in (yield objs.Club.find_sort({'$nor': [{'_id': '@'}, {'_id': ''}]}, [('value', -1)], limit=20)))
    if rebuild:
        LAST_REBUILD = time.time()
        result = yield objs.Message.map_reduce(TAGS_MAP, CLUBS_REDUCE, out='tags')
    if (not rebuild) or result:
        tags = list(x.doc for x in (yield objs.Tag.find_sort({'_id': {'$ne': ''}}, [('value', -1)], limit=20)))