From d88157f3060884134fd4a76625ba4a7317f4eeed Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 26 Jul 2024 08:57:43 +0000 Subject: [PATCH] made change in conversion PP18 mail not go when lpp --- kitchen_counter/conversion/views.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/kitchen_counter/conversion/views.py b/kitchen_counter/conversion/views.py index 69e5057..73945d6 100644 --- a/kitchen_counter/conversion/views.py +++ b/kitchen_counter/conversion/views.py @@ -1269,12 +1269,13 @@ def start_conversion(request): """Translation Completion mail here""" - to = request.user.email - key_value = { - "User": request.user.username, - "title": original_script.script_title - } - sendmail(to_email=[to], email_code="PP18", key_value=key_value) + if not translated_script.lpp: + to = request.user.email + key_value = { + "User": request.user.username, + "title": original_script.script_title + } + sendmail(to_email=[to], email_code="PP18", key_value=key_value) """Translation Completion mail done"""