mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 19:09:29 +00:00
fix last_reindex diff calculation
This commit is contained in:
@@ -469,7 +469,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 * 24:
|
||||
if isinstance(last_reindex, int) and now - last_reindex < 60 * 60 * 24:
|
||||
return
|
||||
# continue if needed
|
||||
reindex_handler = Reindex()
|
||||
|
||||
Reference in New Issue
Block a user