From 6ed093fcff81ccb82226b88ef0a8b90bcb80c55b Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Sat, 30 Apr 2022 05:42:33 +0000 Subject: [PATCH] Revert "Improve current cycle time" This reverts commit 43b2a1d6bb4c4abbc86d41aecfe6d7449cdc4a85 --- period/cycles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/period/cycles.py b/period/cycles.py index 6db2ce0..9ec1bf2 100644 --- a/period/cycles.py +++ b/period/cycles.py @@ -17,7 +17,7 @@ def index(): db = get_db() current_cycle = db.execute('SELECT * from cycle ORDER BY id DESC LIMIT 1').fetchone() start_time = pendulum.parse(current_cycle['start_time']) - cycle_length = ((pendulum.now() - start_time ).days)+1 + cycle_length = (pendulum.now() - start_time ).days db.execute( 'UPDATE cycle SET cycle_length = ?'