Esempio n. 1
0
 def update_card_owner(self):
     key = 'cards:owner:%s' % self.card.fact.deck.owner_id
     redis.sadd(key, self.card.id)
Esempio n. 2
0
 def update_deck(self):
     key = 'cards:deck:{0}'.format(self.card.fact.deck_id)
     redis.sadd(key, self.card.id)