comparison libervia/frontends/quick_frontend/quick_list_manager.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 26b7ed2817da
children
comparison
equal deleted inserted replaced
4269:64a85ce8be70 4270:0d7bb4df2343
36 self.untagged.sort() 36 self.untagged.sort()
37 37
38 @property 38 @property
39 def items(self): 39 def items(self):
40 """Return a sorted list of all items, tagged or untagged. 40 """Return a sorted list of all items, tagged or untagged.
41 41
42 @return list 42 @return list
43 """ 43 """
44 res = list(set(self.tagged).union(self.untagged)) 44 res = list(set(self.tagged).union(self.untagged))
45 res.sort() 45 res.sort()
46 return res 46 return res
58 self.tagged.sort() 58 self.tagged.sort()
59 self.untagged.sort() 59 self.untagged.sort()
60 60
61 def untag(self, items): 61 def untag(self, items):
62 """Untag some items. 62 """Untag some items.
63 63
64 @param items (list): items to be untagged 64 @param items (list): items to be untagged
65 """ 65 """
66 for item in items: 66 for item in items:
67 if item not in self.untagged and item in self.original: 67 if item not in self.untagged and item in self.original:
68 self.untagged.append(item) 68 self.untagged.append(item)