Skip to content

Commit

Permalink
Fix broken XML field content importing
Browse files Browse the repository at this point in the history
This apparently changed recently in AnkiApp exports.
  • Loading branch information
abdnh committed Apr 5, 2024
1 parent fa99c20 commit a4d2c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/importers/ankiapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def field_list_to_refs(flds: list[str]) -> str:
self.notetypes[str(self.deck_id)] = notetype
for card_el in deck_el.select("card"):
fields: dict[str, str] = {}
for field in card_el.select("field"):
for field in card_el.select("*"):
fields[
notetype.fields.normalize(str(field["name"]))
] = field.decode_contents()
Expand Down

0 comments on commit a4d2c91

Please sign in to comment.