Skip to content

Commit

Permalink
Remove requireReset/maybeReset when adding new characters
Browse files Browse the repository at this point in the history
  • Loading branch information
mjuhanne committed Sep 1, 2023
1 parent 62c646f commit f301228
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions addon/kanji.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,16 +615,12 @@ def make_cards_from_characters(self, card_type, new_characters, checkpoint=None)
deck_id = deck["id"]
model = aqt.mw.col.models.byName(model_name)

aqt.mw.requireReset()

for c in characters:
note = anki.notes.Note(aqt.mw.col, model)
note["Character"] = c
self.refresh_note(note)
add_note_no_hook(aqt.mw.col, note, deck_id)

aqt.mw.maybeReset()

self.recalc_user_cards(card_type)

def refresh_note(self, note, do_flush=False):
Expand Down

0 comments on commit f301228

Please sign in to comment.