(self, card, type, cnt=1)
Increment card counts for original decks
Increment card counts for original decks
Increment card counts for original decks
def onUpdateStats(self, card, type, cnt=1):
    """Increment card counts for original decks"""
    # only applies to filtered decks using our special syntax
    key = type+"Today"
    if card.odid:
        conf = self.col.decks.confForDid(card.did)
        if "is:today" not in conf["terms"][0][0]:
            return
        for g in ([self.col.decks.get(card.odid)] +
                  self.col.decks.parents(card.odid)):
            # add
            g[key][1] += cnt
            self.col.decks.save(g)
def onUpdateStats ( self , card , type , cnt = 1 ) : # only applies to filtered decks using our special syntax key = type + "Today" if card . odid : conf = self . col . decks . confForDid ( card . did ) if "is:today" not in conf [ "terms" ] [ 0 ] [ 0 ] : return for g in ( [ self . col . decks . get ( card . odid ) ] + self . col . decks . parents ( card . odid ) ) : # add g [ key ] [ 1 ] += cnt self . col . decks . save ( g )