Replace previous variable by list_status_insertion

This commit is contained in:
Stewie
2022-06-28 21:41:25 -04:00
parent 801e2ec0c8
commit 9527233591

View File

@@ -145,7 +145,7 @@ class ToolsTOR(ToolsTales):
with open(os.path.join( self.story_XML_patch,"XML", self.get_file_name(scpkFileName)+".xml"), "wb") as xmlFile:
xmlFile.write(txt)
def get_Node_Bytes(self, entry_node, list_rules):
def get_Node_Bytes(self, entry_node):
#Grab the fields from the Entry in the XML
status = entry_node.find("Status").text
@@ -154,7 +154,7 @@ class ToolsTOR(ToolsTales):
#Use the values only for Status = Done and use English if non empty
final_text = ''
if (status in list_rules):
if (status in self.list_status_insertion):
final_text = english_text or japanese_text or ''
else:
final_text = japanese_text or ''