jp.py:
调整表结构以适配日语词典结构 requirements.txt: 新增依赖包 admin_schemas.py: 调整日语词性Enum
This commit is contained in:
parent
5b2e7890f8
commit
f295457441
|
|
@ -200,7 +200,7 @@ async def import_attachment(path: Path = xlsx_path, sheet_name: str = "日汉释
|
||||||
continue
|
continue
|
||||||
|
|
||||||
hiragana = normalize_jp_text(jaconv.kata2hira(str(row[1]))) if pd.isna(row[2]) else normalize_jp_text(str(row[2]))
|
hiragana = normalize_jp_text(jaconv.kata2hira(str(row[1]))) if pd.isna(row[2]) else normalize_jp_text(str(row[2]))
|
||||||
romaji = kana_to_romaji(word)
|
romaji = jaconv.kana2alphabet(hiragana)
|
||||||
|
|
||||||
await AttachmentJp.get_or_create(
|
await AttachmentJp.get_or_create(
|
||||||
word=word_obj,
|
word=word_obj,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue