Skip to content

Commit 662c591

Browse files
fix: anki
1 parent 5d95ad0 commit 662c591

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WDoc/utils/loaders.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -919,9 +919,9 @@ def placeholder_replacer(row: pd.Series) -> Tuple[str, dict]:
919919

920920
pbar(desc="Formatting all cards")
921921
notes["medias"] = {}
922-
texts, medias = notes.progress_apply(placeholder_replacer, axis=1)
923-
notes["text"] = texts
924-
notes["medias"] = medias
922+
out = notes.progress_apply(placeholder_replacer, axis=1)
923+
notes["text"] = [t[0] for t in out]
924+
notes["medias"] = [t[1] for t in out]
925925

926926
notes["text"] = notes["text"].progress_apply(lambda x: x.strip())
927927
notes = notes[notes["text"].ne('')] # remove empty text

0 commit comments

Comments
 (0)