forked from glutanimate/anki-addons-misc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update true retention to be compatible with >v2.1.28
Fixes glutanimate#158. Major update to code organization. Base functions to calculate retention are now in utils.py. Code to integrate with Anki is broken up into two files: stats_true_retention_extended.py and stats_true_retention_extended_old.py. Code to write to the new stats page introduced in 2.1.28 is in its own JS file setStats.js. __init__.py has been updated to facilitate backwards compatibility with older versions of Anki.
- Loading branch information
1 parent
f1e6693
commit 87a60ee
Showing
5 changed files
with
290 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/stats_true_retention_extended/stats_true_retention_extended_old.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
True Retention Add-on for Anki (extended) | ||
Based on True Retention by Strider (?) | ||
(https://ankiweb.net/shared/info/613684242) | ||
Copyright: (c) 2016 Strider (?) | ||
(c) 2017 Glutanimate (https://github.com/Glutanimate) | ||
License: GNU AGPLv3 or later <https://www.gnu.org/licenses/agpl.html> | ||
""" | ||
|
||
import anki | ||
from .utils import todayStats_new | ||
|
||
anki.stats.CollectionStats.todayStats = todayStats_new |
Oops, something went wrong.