mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
33 lines
830 B
Python
33 lines
830 B
Python
# Copyright: Ankitects Pty Ltd and contributors
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
# pylint: disable=invalid-name
|
|
|
|
from __future__ import annotations
|
|
|
|
from anki.cards import Card
|
|
from anki.decks import DeckId
|
|
from anki.scheduler.legacy import SchedulerBaseWithLegacy
|
|
|
|
|
|
class DummyScheduler(SchedulerBaseWithLegacy):
|
|
reps = 0
|
|
|
|
def reset(self) -> None:
|
|
pass
|
|
|
|
def getCard(self) -> Card | None:
|
|
raise Exception("v1 scheduler no longer supported")
|
|
|
|
def answerCard(self, card: Card, ease: int) -> None:
|
|
raise Exception("v1 scheduler no longer supported")
|
|
|
|
def _is_finished(self) -> bool:
|
|
return False
|
|
|
|
@property
|
|
def active_decks(self) -> list[DeckId]:
|
|
return []
|
|
|
|
def counts(self) -> list[int]:
|
|
return [0, 0, 0]
|