fix filter active TRue

This commit is contained in:
Cayo Puigdefabregas 2023-01-17 13:18:18 +01:00
parent f8d418b4a9
commit c26d2d69b9
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ class FilterForm(FlaskForm):
if filter_type: if filter_type:
self.devices = self.devices.filter(Device.type.in_(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() Device.updated.desc()
) )