From c26d2d69b9deab108cebf56fa786e98e7b9abdc6 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 17 Jan 2023 13:18:18 +0100 Subject: [PATCH] fix filter active TRue --- ereuse_devicehub/inventory/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/inventory/forms.py b/ereuse_devicehub/inventory/forms.py index 9e14ca13..90b900f5 100644 --- a/ereuse_devicehub/inventory/forms.py +++ b/ereuse_devicehub/inventory/forms.py @@ -203,7 +203,7 @@ class FilterForm(FlaskForm): if filter_type: self.devices = self.devices.filter(Device.type.in_(filter_type)) - return self.devices.filter(Device.active.is_(False)).order_by( + return self.devices.filter(Device.active.is_(True)).order_by( Device.updated.desc() )