From e0ee693fc711eb2293c16e1454edaa0ed8a94a8f Mon Sep 17 00:00:00 2001 From: Jarrett Ye Date: Thu, 14 Nov 2024 21:10:43 +0800 Subject: [PATCH] Update reset.py --- schedule/reset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schedule/reset.py b/schedule/reset.py index 0f6b385..a3a0fb4 100644 --- a/schedule/reset.py +++ b/schedule/reset.py @@ -37,9 +37,6 @@ def clear_custom_data(did): def clear_manual_rescheduling(did): - if not ask_one_way_sync(): - return - if not askUser( 'This option removes revlog entries generated by "Set due date" and "Reschedule cards on change" ' + "that immediately precede another manual or reschedule entry.\n\n" @@ -47,6 +44,9 @@ def clear_manual_rescheduling(did): ): return + if not ask_one_way_sync(): + return + revlog_ids = mw.col.db.list( """ SELECT cur.id