Skip to content

Commit

Permalink
fix: properly detect the scheduler version
Browse files Browse the repository at this point in the history
refer: #94
  • Loading branch information
lervag committed Jun 1, 2024
1 parent bff40f9 commit 13dc9f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/apyanki/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,9 @@ def info() -> None:
console.print("Config file: Not found")

with Anki(**cfg) as a:
scheduler = 3 if a.col.v3_scheduler() else a.col.sched_ver()
console.print(f"Collection path: {a.col.path}")
console.print(f"Scheduler version: {a.col.sched_ver()}")
console.print(f"Scheduler version: {scheduler}")

if a.col.decks.count() > 1:
console.print("Decks:")
Expand Down

0 comments on commit 13dc9f3

Please sign in to comment.