ltest bug fixes

This commit is contained in:
Wolfang Torres
2026-06-30 23:34:31 +08:00
parent 977bb422c0
commit 04fd4cef89
3 changed files with 16 additions and 3 deletions

View File

@@ -3,4 +3,4 @@
# SPDX-FileCopyrightText: 2026-present Wolfang Torres <wolfang.torres@gmail.com>
#
# SPDX-License-Identifier: GPL-3.0-or-later
__version__ = "0.2.3"
__version__ = "0.2.4"

View File

@@ -125,7 +125,12 @@ def dictionary_bulk_process(words_list: list[str], process_file: ProcessFile):
meanings_text = "\n".join(
f"{n+1}: {meaning}" for n, meaning in enumerate(pos_meanings)
)
entry = entries[0]
pos_entries = []
for meaning in pos_meanings:
for ent in entries:
if meaning in ent.meanings:
pos_entries.append(ent)
entry = pos_entries[0]
tsv_writer.writerow(
{
"n": number,