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/search/search_server.py bnw(Download)
def run_incremental_indexing(self): self.indexed = 0 c1 = yield bnw_objects.Message.count({'indexed': {'$exists': False}}) c2 = yield bnw_objects.Comment.count({'indexed': {'$exists': False}}) self.total = c1 + c2
src/b/n/bnw-HEAD/bnw/handlers/command_userinfo.py bnw(Download)
subscriptions = set([x['target'] for x in subscriptions]) messages_count = int((yield objs.Message.count({'user': user}))) comments_count = int((yield objs.Comment.count({'user': user}))) characters_stat = yield objs.StatCharacters.find_one({'_id': user}) characters_count = int(characters_stat['value']) if characters_stat else 0