(self, domain, rdb)
return xdata[domain]
This will lookup a domain by the domain name and return the domain id
This will lookup a domain by the domain name and return the domain id
This will lookup a domain by the domain name and return the domain id
def getDID(self, domain, rdb):
        '''
        This will lookup a domain by the domain name and return the domain id
        '''
        result = r.table('domains').filter({'domain': domain}).run(rdb)
        xdata = {}
        for x in result:
            xdata[x['domain']] = x['did']
        return xdata[domain]
def getDID ( self , domain , rdb ) : result = r . table ( 'domains' ) . filter ( { 'domain' : domain } ) . run ( rdb ) xdata = { } for x in result : xdata [ x [ 'domain' ] ] = x [ 'did' ] return xdata [ domain ]