调整表结构以适配日语词典结构
requirements.txt:
新增依赖包
admin_schemas.py:
调整日语词性Enum
This commit is contained in:
Miyamizu-MitsuhaSang 2025-08-27 16:46:42 +08:00
parent 5b2e7890f8
commit f295457441
1 changed files with 1 additions and 1 deletions

View File

@ -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,