Skip to content

Commit

Permalink
Ignore manual reschedule in retention graph (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustaf-C authored Oct 18, 2023
1 parent ce793cd commit e1c69e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def get_retention_graph(self: CollectionStats):
COUNT(CASE WHEN ease > 1 AND lastIvl < {config.mature_ivl} AND lastIvl > {config.mature_ivl} * -86400 THEN id ELSE NULL END) / (COUNT(CASE WHEN lastIvl < {config.mature_ivl} AND lastIvl > {config.mature_ivl} * -86400 THEN id ELSE NULL END) + 0.0001),
COUNT(CASE WHEN ease > 1 AND (lastIvl >= {config.mature_ivl} OR lastIvl <= {config.mature_ivl} * -86400) THEN id ELSE NULL END) / (COUNT(CASE WHEN lastIvl >= {config.mature_ivl} OR lastIvl <= {config.mature_ivl} * -86400 THEN id ELSE NULL END) + 0.0001)
FROM revlog
WHERE (type = 1 OR lastIvl <= -86400 OR lastIvl >= 1)
WHERE ease >= 1 AND (type = 1 OR lastIvl <= -86400 OR lastIvl >= 1)
{lim}
GROUP BY day
"""
Expand Down

0 comments on commit e1c69e8

Please sign in to comment.