mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
note->n
Next commit will transform f into note, and this lead to a variable clash here
This commit is contained in:
parent
61017a2e21
commit
6a529e51cc
1 changed files with 2 additions and 2 deletions
|
@ -52,8 +52,8 @@ def test_genrem():
|
|||
t["qfmt"] = "{{Back}}"
|
||||
mm.save(m, templates=True)
|
||||
rep = d.backend.get_empty_cards()
|
||||
for note in rep.notes:
|
||||
d.remove_cards_and_orphaned_notes(note.card_ids)
|
||||
for n in rep.notes:
|
||||
d.remove_cards_and_orphaned_notes(n.card_ids)
|
||||
assert len(f.cards()) == 1
|
||||
# if we add to the note, a card should be automatically generated
|
||||
f.load()
|
||||
|
|
Loading…
Reference in a new issue