add tone level for ja word

This commit is contained in:
Hiller Liao
2023-07-18 15:52:43 +08:00
parent 4370bc36f0
commit 07e1a16a20

View File

@@ -23,7 +23,7 @@ def ctx(category=''):
if category == 'ja':
url = 'https://raw.githubusercontent.com/hillerliao/img/main/words.csv'
res = get_csv_line(url)
word = f"{res[1]} {res[2]} {res[3]} "
word = f"{res[1]} {res[2]} {res[4]} {res[3]} "
else:
file = path.join(file_path,'toeflwords.txt')
with open(file, encoding='utf-8') as inf: