From c4b68a8c2f4fa5815accbf2ae81abb77b3b02861 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Fri, 29 Apr 2022 23:12:42 -0400 Subject: [PATCH] Wrap Update at correct level --- period/cycles.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/period/cycles.py b/period/cycles.py index 3b0f55b..dc33e6b 100644 --- a/period/cycles.py +++ b/period/cycles.py @@ -21,11 +21,11 @@ def index(): if current_cycle['end_time'] is None: cycle_length = (pendulum.now() - start_time).days - db.execute( - 'UPDATE cycle SET cycle_length = ?' - ' WHERE id = ?', - (cycle_length, current_cycle['id']) - ) + db.execute( + 'UPDATE cycle SET cycle_length = ?' + ' WHERE id = ?', + (cycle_length, current_cycle['id']) + ) cycles = db.execute( 'SELECT id, start_time, end_time, cycle_length'