(self, rdb)
return self.reactions
Returns a list of reaction id's that this user owns
Returns a list of reaction id's that this user owns
Returns a list of reaction id s that this user owns
def getReactions(self, rdb):
        ''' Returns a list of reaction id's that this user owns '''
        # Get Reactions
        results = r.table('reactions').filter(
            {'uid': self.uid}).order_by('name').run(rdb)
        reactions = {}
        for x in results:
            if "encrypted" in x:
                if x['encrypted'] is True:
                    crypto = Fernet(self.config['CRYPTO_KEY'])
                    x['data'] = json.loads(crypto.decrypt(bytes(x['data'])))
            reactions[x['id']] = x
        self.reactions = reactions
        return self.reactions
def getReactions ( self , rdb ) : # Get Reactions results = r . table ( 'reactions' ) . filter ( { 'uid' : self . uid } ) . order_by ( 'name' ) . run ( rdb ) reactions = { } for x in results : if "encrypted" in x : if x [ 'encrypted' ] is True : crypto = Fernet ( self . config [ 'CRYPTO_KEY' ] ) x [ 'data' ] = json . loads ( crypto . decrypt ( bytes ( x [ 'data' ] ) ) ) reactions [ x [ 'id' ] ] = x self . reactions = reactions return self . reactions