From fdfbf641210c1d6a9cd74d380ce2cd53e81f79e0 Mon Sep 17 00:00:00 2001 From: Jarrett Ye Date: Thu, 28 Nov 2024 00:41:51 +0800 Subject: [PATCH] fix missing return of fit_forgetting_curve --- steps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/steps.py b/steps.py index 19a35ef..8c7f3c1 100644 --- a/steps.py +++ b/steps.py @@ -27,6 +27,8 @@ def fit_forgetting_curve(points, low=1, high=86400 * 30, tolerance=0.1): else: low = left_third # Minimum is in right part + return (high + low) / 2 + def steps_stats(deck_lim, period_lim): sql = f"""