diff --git a/weboob/applications/qflatboob/main_window.py b/weboob/applications/qflatboob/main_window.py index 90cebe24..1bab0620 100644 --- a/weboob/applications/qflatboob/main_window.py +++ b/weboob/applications/qflatboob/main_window.py @@ -32,10 +32,11 @@ class HousingListWidgetItem(QListWidgetItem): def __init__(self, housing, *args, **kwargs): QListWidgetItem.__init__(self, *args, **kwargs) self.housing = housing + self.read = False def __lt__(self, other): - return (float(self.housing.cost) / float(self.housing.area)) < \ - (float(other.housing.cost) / float(other.housing.area)) + return '%s%s' % (self.read, float(self.housing.cost) / float(self.housing.area)) < \ + '%s%s' % (other.read, float(other.housing.cost) / float(other.housing.area)) def setAttrs(self, storage): text = u'