Эх сурвалжийг харах

Remove ugly non pythonic code

oz123 10 жил өмнө
parent
commit
47b58ba6da

+ 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