(self, method, lookup, rdb)
This will return a reactions
        information based on the data provided
This will return a reactions
        information based on the data provided
This will return a reactions information based on the data provided
def get(self, method, lookup, rdb):
        '''
        This will return a reactions
        information based on the data provided
        '''
        if method == 'rid':
            rid = lookup
        else:
            rid = self.getRID(lookup, rdb)
        results = r.table('reactions').get(rid).run(rdb)
        if results:
            self.rid = rid
            self.name = results['name']
            self.rtype = results['rtype']
            self.uid = results['uid']
            self.trigger = results['trigger']
            self.frequency = results['frequency']
            self.lastrun = results['lastrun']
            self.data = results['data']
            if "encrypted" in results:
                self.encrypted = results['encrypted']
            if self.encrypted:
                crypto = Fernet(self.config['CRYPTO_KEY'])
                self.data = json.loads(crypto.decrypt(bytes(self.data)))
            return self
        else:
            return False
def get ( self , method , lookup , rdb ) : if method == 'rid' : rid = lookup else : rid = self . getRID ( lookup , rdb ) results = r . table ( 'reactions' ) . get ( rid ) . run ( rdb ) if results : self . rid = rid self . name = results [ 'name' ] self . rtype = results [ 'rtype' ] self . uid = results [ 'uid' ] self . trigger = results [ 'trigger' ] self . frequency = results [ 'frequency' ] self . lastrun = results [ 'lastrun' ] self . data = results [ 'data' ] if "encrypted" in results : self . encrypted = results [ 'encrypted' ] if self . encrypted : crypto = Fernet ( self . config [ 'CRYPTO_KEY' ] ) self . data = json . loads ( crypto . decrypt ( bytes ( self . data ) ) ) return self else : return False