From a175d29a992d9ed9ab9a665de4f89a83b55f9155 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 3 Aug 2024 12:24:21 +0000 Subject: [PATCH] pp18 in lpp update --- .../conversion/translation/external_conversion.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kitchen_counter/conversion/translation/external_conversion.py b/kitchen_counter/conversion/translation/external_conversion.py index 48372b6..953b622 100644 --- a/kitchen_counter/conversion/translation/external_conversion.py +++ b/kitchen_counter/conversion/translation/external_conversion.py @@ -484,13 +484,13 @@ class Conversion: """Translation Completion mail here""" - - to = self.user.email - key_value = { - "User": self.user.username, - "title": self.original_script_object.script_title - } - sendmail(to_email=[to], email_code="PP18", key_value=key_value) + if not self.translated_script_object.lpp: + to = self.user.email + key_value = { + "User": self.user.username, + "title": self.original_script_object.script_title + } + sendmail(to_email=[to], email_code="PP18", key_value=key_value) """Translation Completion mail done"""