anki_straight_reward
anki_straight_reward copied to clipboard
Use Anki hooks rather than wrap
This can only be accomplished once there is a anki hook, where we can inspect the incoming revlog entries.
The closest thing right now is hooks.sync_stage_did_change.append().
See discussion here: https://anki.tenderapp.com/discussions/add-ons/42645-getting-collection-during-new-style-sync-hook
As of today, the only wrap that remains is around AnkiQt._sync in the sync_hook.