mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-19 15:25:51 +00:00
fix reindex active_key
This commit is contained in:
parent
5888e5442a
commit
9a526f93f4
@ -100,7 +100,7 @@ class ReindexOutdated(ReindexBase):
|
|||||||
refresh_key = reindex_config["refresh_key"]
|
refresh_key = reindex_config["refresh_key"]
|
||||||
now_lte = self.now - self.interval * 24 * 60 * 60
|
now_lte = self.now - self.interval * 24 * 60 * 60
|
||||||
must_list = [
|
must_list = [
|
||||||
{"match": {"active": True}},
|
{"match": {reindex_config["active_key"]: True}},
|
||||||
{"range": {refresh_key: {"lte": now_lte}}},
|
{"range": {refresh_key: {"lte": now_lte}}},
|
||||||
]
|
]
|
||||||
data = {
|
data = {
|
||||||
|
Loading…
Reference in New Issue
Block a user