Skip to content

Commit

Permalink
!squash start importer consolidations
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jun 9, 2023
1 parent da3ac04 commit 25362df
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/unihan_db/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ def import_char(

if "kFennIndex" in char:
_kFennIndex = char["kFennIndex"]
k = kFennIndex()
assert isinstance(_kFennIndex, dict)
assert isinstance(_kFennIndex["location"], dict)
k.locations.append(
UnhnLocation(
page=_kFennIndex["location"]["page"],
character=_kFennIndex["location"]["character"],
c.kFennIndex.append(
kFennIndex(
locations=UnhnLocation(
page=_kFennIndex["location"]["page"],
character=_kFennIndex["location"]["character"],
)
)
)
c.kFennIndex.append(k)

0 comments on commit 25362df

Please sign in to comment.