(self, username, rdb)
Lookup a users uid by username
Lookup a users uid by username
Lookup a users uid by username
def getUID(self, username, rdb):
        ''' Lookup a users uid by username '''
        results = r.table('users').filter(
            r.row['username'] == username).run(rdb)
        xdata = {}
        for x in results:
            key = x['username']
            value = x['id']
            xdata[key] = value
        if username in xdata:
            return xdata[username]
        else:
            return False
def getUID ( self , username , rdb ) : results = r . table ( 'users' ) . filter ( r . row [ 'username' ] == username ) . run ( rdb ) xdata = { } for x in results : key = x [ 'username' ] value = x [ 'id' ] xdata [ key ] = value if username in xdata : return xdata [ username ] else : return False