(self, username, rdb)
Check if a user is confirmed or not
Check if a user is confirmed or not
Check if a user is confirmed or not
def is_confirmed(self, username, rdb):
        ''' Check if a user is confirmed or not '''
        results = r.table('users').filter({'username': username}).run(rdb)
        if results:
            return self.confirmed
        else:
            return "No data found"
def is_confirmed ( self , username , rdb ) : results = r . table ( 'users' ) . filter ( { 'username' : username } ) . run ( rdb ) if results : return self . confirmed else : return "No data found"