From ddd25d991f1a96fce7d9d22c856aa8bd3c067b03 Mon Sep 17 00:00:00 2001 From: Strahinja Jacimovic Date: Tue, 24 Dec 2024 23:01:58 +0100 Subject: [PATCH] Update check_indexes.py --- scripts/check_indexes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/check_indexes.py b/scripts/check_indexes.py index 6abf1496b..a13bac9b7 100644 --- a/scripts/check_indexes.py +++ b/scripts/check_indexes.py @@ -47,7 +47,12 @@ def str2bool(v): err = False for indexed_item in es_instance.indexed_items: + if indexed_item['name'] != 'database': + continue asset_status = requests.get(indexed_item['source']['download_link'], headers=headers) + indexed_item['source']['version'] = '1.1.180' + es_instance.update(None, indexed_item['doc']['id'], indexed_item['source']) + break if es_instance.Status.ERROR.value == asset_status.status_code: ## code 404 - error, reindex with correct download link err = True print("%sERROR: Asset \"%s\" download link is incorrect. - %s" % (es_instance.Colors.FAIL, indexed_item['source']['name'], indexed_item['source']['download_link']))