Features: None;

Fixes: 1) Remove redundant check for 'system_email_sent' attribute in email logic;

Extra: None;
This commit is contained in:
Egor Pavlovich Gorbunov 2025-07-18 11:19:37 +03:00
parent 817310b898
commit 6af5312b3f

View file

@ -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(