mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-25 05:00:16 +00:00
fix last_reindex diff calculation
This commit is contained in:
parent
fe33e9178c
commit
f105a9d9d8
@ -469,7 +469,7 @@ def reindex_old_documents():
|
|||||||
# check needed last run
|
# check needed last run
|
||||||
now = int(datetime.now().strftime("%s"))
|
now = int(datetime.now().strftime("%s"))
|
||||||
last_reindex = get_message('last_reindex')
|
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
|
return
|
||||||
# continue if needed
|
# continue if needed
|
||||||
reindex_handler = Reindex()
|
reindex_handler = Reindex()
|
||||||
|
Loading…
Reference in New Issue
Block a user