From 95272335917ef4ebf6c2d1d197c7ac6643718546 Mon Sep 17 00:00:00 2001 From: Stewie Date: Tue, 28 Jun 2022 21:41:25 -0400 Subject: [PATCH] Replace previous variable by list_status_insertion --- ToolsTOR.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ToolsTOR.py b/ToolsTOR.py index 5fdaeca..5057c9a 100644 --- a/ToolsTOR.py +++ b/ToolsTOR.py @@ -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 ''