From 5cce2f4efb90dd8b0e23d7ca9cde6c9932f04f4e Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 25 Oct 2021 13:24:22 +0200 Subject: [PATCH] change some sintaxis --- ereuse_devicehub/resources/action/views/trade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/action/views/trade.py b/ereuse_devicehub/resources/action/views/trade.py index af44cedb..16f2572b 100644 --- a/ereuse_devicehub/resources/action/views/trade.py +++ b/ereuse_devicehub/resources/action/views/trade.py @@ -66,7 +66,7 @@ class TradeView(): # check than the user than want to do the action is one of the users # involved in the action - if not g.user in [self.trade.user_from, self.trade.user_to]: + if g.user not in [self.trade.user_from, self.trade.user_to]: txt = "You do not participate in this trading" raise ValidationError(txt)