diff --git a/app/hostmodels.py b/app/hostmodels.py index bb73970..5c02de0 100644 --- a/app/hostmodels.py +++ b/app/hostmodels.py @@ -30,7 +30,7 @@ def rowCount(self, parent): return len(self.__hosts) def columnCount(self, parent): - if not len(self.__hosts) is 0: + if len(self.__hosts) != 0: return len(self.__hosts[0]) return 0