@tornado.gen.coroutine
    def find_location_players(self, iid, locid):
        if locid:
            cursor = self.app.mongodb.playstate.find({'iid':iid, 'locid':locid},
                                                     {'_id':1})
        else:
            cursor = self.app.mongodb.playstate.find({'iid':iid},
                                                     {'_id':1})
        people = []
        while (yield cursor.fetch_next):
            ostate = cursor.next_object()
            people.append(ostate['_id'])
        # cursor autoclose
            
        return people
Generates a list of players in a given location. If locid
dataset/ETHPy150Open erkyrath/tworld/lib/two/task.py/Task.find_location_players