소스 검색

Remove ugly non pythonic code

oz123 10 년 전
부모
커밋
47b58ba6da
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pwman/data/drivers/sqlite.py

+ 1 - 1
pwman/data/drivers/sqlite.py

@@ -192,7 +192,7 @@ class SQLiteDatabaseNewForm(Database):
     def listnodes(self):
         sql = ''
         params = []
-        if len(self._filtertags) == 0:
+        if not self._filtertags:
             sql = "SELECT ID FROM NODES ORDER BY ID ASC"
         else:
             first = True