Skip to content

Commit

Permalink
批量更新结果检查
Browse files Browse the repository at this point in the history
  • Loading branch information
DogeCN committed Feb 1, 2025
1 parent daf9d54 commit 4da4fdf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/_batch/_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
def main():
count = 0
for result in tool.mw.ui.Bank.results:
result.value = translate(result.word).value
count += 1
new = translate(result.word)
if new:
result.value = new.value
count += 1
tool.message.Show(tool.tr("updated") % count)


Expand Down

0 comments on commit 4da4fdf

Please sign in to comment.