mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-25 13:10:15 +00:00
fixed the last_reindex interval calculation
This commit is contained in:
parent
7d60af1491
commit
3c003750a8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user