diff --git a/anki/__init__.py b/anki/__init__.py index cdc14deea..f0b5140a8 100644 --- a/anki/__init__.py +++ b/anki/__init__.py @@ -15,12 +15,16 @@ Get a due card: Show the card: - print card.q, card.a + print card.q(), card.a() Answer the card: deck.sched.answerCard(card, ease) +Refresh after a change: + + deck.reset() + Edit the card: fact = card.fact() @@ -33,5 +37,5 @@ Save & close: deck.close() """ -version = "1.2.6" +version = "1.99" from anki.storage import Deck diff --git a/anki/hooks.py b/anki/hooks.py index c43e104bf..24a47b2b9 100644 --- a/anki/hooks.py +++ b/anki/hooks.py @@ -6,7 +6,7 @@ Hooks - hook management and tools for extending Anki ============================================================================== -To find available hooks, grep for runHook in the source code. +To find available hooks, grep for runHook and runFilter in the source code. Instrumenting allows you to modify functions that don't have hooks available. If you call wrap() with pos='around', the original function will not be called diff --git a/anki/models.py b/anki/models.py index 2f47a6501..96ea5b7f8 100644 --- a/anki/models.py +++ b/anki/models.py @@ -8,7 +8,6 @@ from anki.lang import _ # Models ########################################################################## -# GUI code should ensure no two fields have the same name. defaultConf = { 'sortf': 0,