CFD issues of translation failing and audit user changed to Brainstorm
This commit is contained in:
parent
1da3782a91
commit
6e15d10fd0
|
@ -50,8 +50,9 @@ def run_conversion(msg):
|
|||
)
|
||||
s3_client.download_file("conversion-kitchen", object_key, local_file_path)
|
||||
|
||||
|
||||
audit_user = User.objects.get(id=1)
|
||||
conversion_params = {
|
||||
"audit_user": audit_user,
|
||||
"user": translated_script.user_id,
|
||||
"file_path": str(basePath) + "/media/" + translated_script.script_link_id.script.name,
|
||||
"original_script_id": translated_script.script_link_id.script_id,
|
||||
|
|
|
@ -42,6 +42,7 @@ basePath = BasePath()
|
|||
class Conversion:
|
||||
|
||||
def __init__(self, **conversion_params):
|
||||
self.audit_user = conversion_params['audit_user']
|
||||
self.user = conversion_params['user']
|
||||
self.file_path = conversion_params['file_path']
|
||||
self.original_script_object = MNFScriptDatabase.objects.get(
|
||||
|
@ -122,8 +123,8 @@ class Conversion:
|
|||
)
|
||||
language_code = "en"
|
||||
result = filesystem.new_screenplay_without_audit_in_background(
|
||||
self.user,
|
||||
self.user.username,
|
||||
self.audit_user,
|
||||
self.audit_user.username,
|
||||
str(self.name_script),
|
||||
file,
|
||||
"script-original",
|
||||
|
@ -216,8 +217,8 @@ class Conversion:
|
|||
)
|
||||
language_code = "en"
|
||||
result = filesystem.new_screenplay_without_audit_in_background(
|
||||
self.user,
|
||||
self.user.username,
|
||||
self.audit_user,
|
||||
self.audit_user.username,
|
||||
str(self.name_script),
|
||||
file,
|
||||
"script-original",
|
||||
|
@ -307,8 +308,8 @@ class Conversion:
|
|||
language_code = "en"
|
||||
unique_str = "_" + str(int(time.time()))
|
||||
result = filesystem.new_screenplay_without_audit_in_background(
|
||||
self.user,
|
||||
self.user.username,
|
||||
self.audit_user,
|
||||
self.audit_user.username,
|
||||
str(self.name_script)+str(unique_str),
|
||||
file,
|
||||
"script-original",
|
||||
|
|
Loading…
Reference in New Issue