From f9189ea413b67309a5a006649ad0ea16d1e7ae33 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 7 Jun 2021 15:45:32 +0200 Subject: [PATCH] confirm check --- ereuse_devicehub/resources/action/views/trade.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ereuse_devicehub/resources/action/views/trade.py b/ereuse_devicehub/resources/action/views/trade.py index 4054b624..eeda7327 100644 --- a/ereuse_devicehub/resources/action/views/trade.py +++ b/ereuse_devicehub/resources/action/views/trade.py @@ -85,6 +85,9 @@ class TradeView(): if self.trade.user_from and self.trade.user_to: return + if self.trade.confirm: + return + if self.trade.user_from and not self.trade.user_to: assert g.user == self.trade.user_from email = "{}_{}@dhub.com".format(str(self.trade.user_from.id), self.trade.code)