diff --git a/period/cycles.py b/period/cycles.py index ec4be5e..596ce39 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 + cycle_length = ((pendulum.now() - start_time ).days)+1 db.execute( 'UPDATE cycle SET cycle_length = ?'