From 13dc9f325c2e025e1c5a840344c2d37f7cfa4bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sun, 2 Jun 2024 01:20:11 +0200 Subject: [PATCH] fix: properly detect the scheduler version refer: #94 --- src/apyanki/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apyanki/cli.py b/src/apyanki/cli.py index 1992916..7fc200d 100644 --- a/src/apyanki/cli.py +++ b/src/apyanki/cli.py @@ -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:")