Ver código fonte

replace t with tags, more verbose, but nicer to read

oz123 12 anos atrás
pai
commit
3aa9322389
1 arquivos alterados com 3 adições e 4 exclusões
  1. 3 4
      pwman/data/database.py

+ 3 - 4
pwman/data/database.py

@@ -16,7 +16,6 @@
 #============================================================================
 # Copyright (C) 2012 Oz Nahum <nahumoz@gmail.com>
 #============================================================================
-#============================================================================
 # Copyright (C) 2006 Ivan Kelly <ivan@ivankelly.net>
 #============================================================================
 
@@ -58,9 +57,9 @@ class Database:
         return self._filtertags
     
     def filter(self, tags):
-        for t in tags:
-            if not (t in self._filtertags):
-                self._filtertags.append(t)
+        for tag in tags:
+            if not (tag in self._filtertags):
+                self._filtertags.append(tag)
 
     def clearfilter(self):
         self._filtertags = []