瀏覽代碼

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

oz123 12 年之前
父節點
當前提交
3aa9322389
共有 1 個文件被更改,包括 3 次插入4 次删除
  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 = []