Skip to content

Commit

Permalink
Update stats.py
Browse files Browse the repository at this point in the history
  • Loading branch information
user1823 authored Dec 2, 2024
1 parent 8f73844 commit e52433d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _lineTbl_now(i):


def retention_stability(lim) -> tuple:
elapse_stability_ivl_list = mw.col.db.all(
elapse_stability_list = mw.col.db.all(
f"""
SELECT
CASE WHEN odid==0
Expand All @@ -45,8 +45,8 @@ def retention_stability(lim) -> tuple:
# x[1]: stability
# x[2]: same nid count
# x[3]: nid
elapse_stability_ivl_list = filter(
lambda x: x[1] is not None, elapse_stability_ivl_list
elapse_stability_list = filter(
lambda x: x[1] is not None, elapse_stability_list
)
retention_stability_list = list(
map(
Expand All @@ -56,7 +56,7 @@ def retention_stability(lim) -> tuple:
x[2],
x[3],
),
elapse_stability_ivl_list,
elapse_stability_list,
)
)
card_cnt = len(retention_stability_list)
Expand Down

0 comments on commit e52433d

Please sign in to comment.