fix outdated redinex now_lte datatype

This commit is contained in:
Simon 2023-11-18 17:30:31 +07:00
parent 9a9d35cac4
commit 463019ce5a
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class ReindexPopulate(ReindexBase):
"""get outdated from index_name"""
index_name = reindex_config["index_name"]
refresh_key = reindex_config["refresh_key"]
now_lte = self.now - self.interval * 24 * 60 * 60
now_lte = str(self.now - self.interval * 24 * 60 * 60)
must_list = [
{"match": {reindex_config["active_key"]: True}},
{"range": {refresh_key: {"lte": now_lte}}},