@tornado.gen.coroutine
    def find_locale_players(self, uid=None, notself=False):
        if uid is None:
            conn = self.app.playconns.get(self.connid)
            if not conn:
                return None
            uid = conn.uid
        
        playstate = yield motor.Op(self.app.mongodb.playstate.find_one,
                                   {'_id':uid},
                                   {'iid':1, 'locid':1})
        if not playstate:
            return None
        iid = playstate['iid']
        if not iid:
            return None
        locid = playstate['locid']
        if not locid:
            return None
        
        cursor = self.app.mongodb.playstate.find({'iid':iid, 'locid':locid},
                                                 {'_id':1})
        people = []
        while (yield cursor.fetch_next):
            ostate = cursor.next_object()
            if notself and ostate['_id'] == uid:
                continue
            people.append(ostate['_id'])
        # cursor autoclose
            
        return people
Returns the testsuite
dataset/ETHPy150Open erkyrath/tworld/lib/two/task.py/Task.find_locale_players--crossover with--dataset/ETHPy150Open cjlee112/pygr/tests/sqlsequence_test.py/get_suite