From 3c003750a89d590954a1c210b0e9a3d948d763d5 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 11 Sep 2021 19:36:19 +0700 Subject: [PATCH] fixed the last_reindex interval calculation --- tubearchivist/home/src/reindex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/home/src/reindex.py b/tubearchivist/home/src/reindex.py index 5355992..ca2e3a7 100644 --- a/tubearchivist/home/src/reindex.py +++ b/tubearchivist/home/src/reindex.py @@ -353,7 +353,7 @@ def reindex_old_documents(): # check needed last run now = int(datetime.now().strftime("%s")) last_reindex = get_message('last_reindex') - if isinstance(last_reindex, int) and now - last_reindex < 60 * 60 * 12: + if isinstance(last_reindex, int) and now - last_reindex > 60 * 60 * 24: return # continue if needed reindex_handler = Reindex()