Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save antonalekseev/ee7a40d4a926f8b03d0d157ff62f41c7 to your computer and use it in GitHub Desktop.

Select an option

Save antonalekseev/ee7a40d4a926f8b03d0d157ff62f41c7 to your computer and use it in GitHub Desktop.
from aqt import mw
from aqt.reviewer import Reviewer
from aqt.deckconf import DeckConf
from aqt.forms import dconf
from anki.hooks import addHook, wrap
from PyQt4 import QtGui
from threading import Timer
def MydefaultEase(self):
if self.typedAnswer == self.typeCorrect:
return 2
else:
return 1
Reviewer._defaultEase = MydefaultEase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment