Skip to content

Commit 16b6459

Browse files
misc
1 parent 068b842 commit 16b6459

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/CAIAssistant.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ def _translateShallow(self, text, translation, language):
7272
translation = res['Translation']
7373
flags = res['Flags']
7474
totalIssues = sum([int(v) for v in flags.values()])
75-
# if totalIssues < 2:
76-
# return translation # all ok, no need to run deep translation
77-
return res, translation, totalIssues < 2
75+
done = (totalIssues < 2)
76+
return res, translation, done
7877

7978
def _translateDeep(self, text, translation, language, inputLanguage, flags):
8079
# extract first word from input language, can be separated by space, comma, etc.,

0 commit comments

Comments
 (0)