Skip to content

Commit

Permalink
col.close() is no longer required
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Dec 5, 2023
1 parent 2e2906e commit 3cd3ad8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/command-line-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ Then you can use it in a .py file, like so:
from anki.collection import Collection
col = Collection("/path/to/collection.anki2")
print(col.sched.deck_due_tree())
col.close()
```

Make sure you call `col.close()` at the end to save any changes.

See [the Anki module](./the-anki-module.md) for more.

0 comments on commit 3cd3ad8

Please sign in to comment.