Auto delete items which have exactly 0 karma
As the defaultdict will return 0 anyway, in order to tidy up the database in the case of mistaken entries, perhaps if karma reaches 0, just remove it from the database (del self.karma[tag]
).
As the defaultdict will return 0 anyway, in order to tidy up the database in the case of mistaken entries, perhaps if karma reaches 0, just remove it from the database (del self.karma[tag]
).