issues/1120

This commit is contained in:
test123456654321 2024-10-26 01:50:23 +08:00
parent f2aef8a375
commit e8842fcd99
2 changed files with 9 additions and 4 deletions

View File

@ -379,7 +379,15 @@ class MAINUI:
if "premt" in self.translators:
try:
maybehaspremt = self.translators["premt"].translate(text_solved)
contentraw = text_solved
for _ in optimization_params:
if isinstance(_, dict):
_gpt_dict = _.get("gpt_dict", None)
if _gpt_dict is None:
continue
contentraw = _.get("gpt_dict_origin")
maybehaspremt = self.translators["premt"].translate(contentraw)
except:
print_exc()
other = list(set(maybehaspremt.keys()) - set(fix_rank))

View File

@ -36,9 +36,6 @@ class TS(basetrans):
)
def translate(self, content):
query = json.loads(content)
content = query["contentraw"]
self.checkfilechanged(
self.unsafegetcurrentgameconfig(), self.config["sqlitefile"]
)