From 829266a80893557fe0900d2cb0ef01c2a78dffdb Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 2 Aug 2022 17:44:36 +0200 Subject: [PATCH] fix excess of line --- ereuse_devicehub/inventory/forms.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/inventory/forms.py b/ereuse_devicehub/inventory/forms.py index cd91deb8..f795ecf0 100644 --- a/ereuse_devicehub/inventory/forms.py +++ b/ereuse_devicehub/inventory/forms.py @@ -137,11 +137,11 @@ class FilterForm(FlaskForm): self.lot = self.lots.filter(Lot.id == self.lot_id).one() device_ids = (d.id for d in self.lot.devices) self.devices = Device.query.filter(Device.id.in_(device_ids)).filter( - Device.binding == None + Device.binding==None ) else: self.devices = Device.query.filter(Device.owner_id == g.user.id).filter( - Device.binding == None + Device.binding==None ) if self.only_unassigned: self.devices = self.devices.filter_by(lots=None) @@ -1643,7 +1643,8 @@ class BindingForm(FlaskForm): return False if self.placeholder.binding: - txt = "This placeholder have a binding with other device. Before you need to do an unbinding with this other device." + txt = "This placeholder have a binding with other device. " + txt += "Before you need to do an unbinding with this other device." self.phid.errors = [txt] return False