Exemplo n.º 1
0
 def __init__(self, component_manager):
     PlotStatisticsPage.__init__(self, component_manager)
     self.variants = [(self.ALL_CARDS, _("All cards"))]
     self.tag_with_internal_id = {}
     for tag in self.database().tags():
         if tag.name == "__UNTAGGED__":
             tag.name = _("Untagged")
         self.tag_with_internal_id[tag._id] = tag
         self.variants.append((tag._id, tag.name))
Exemplo n.º 2
0
 def __init__(self, component_manager):
     PlotStatisticsPage.__init__(self, component_manager)
     self.variants = [(self.ALL_CARDS, _("All cards"))]
     for _id, name in self.database().get_tags__id_and_name():
         self.variants.append((_id, name))