From 6af5312b3fc1da5e03e6a35e137d7b39ef621148 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Fri, 18 Jul 2025 11:19:37 +0300 Subject: [PATCH] Features: None; Fixes: 1) Remove redundant check for 'system_email_sent' attribute in email logic; Extra: None; --- core/utils/emailing.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/utils/emailing.py b/core/utils/emailing.py index dcdcdec7..c262bf50 100644 --- a/core/utils/emailing.py +++ b/core/utils/emailing.py @@ -132,9 +132,6 @@ def send_order_finished_email(order_pk: str) -> tuple[bool, str]: if not order.user: return False, f"Order's user not found with the given pk: {order_pk}" - if order.attributes.get("system_email_sent"): - return True, str(order.uuid) - digital_ops = [] for digital_op in order.order_products.filter(