From 2c9e863b6d9d5752443d75353c1d318437c79828 Mon Sep 17 00:00:00 2001 From: Strahinja Jacimovic Date: Wed, 25 Dec 2024 07:51:12 +0100 Subject: [PATCH] Update check_indexes.py --- scripts/check_indexes.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scripts/check_indexes.py b/scripts/check_indexes.py index b2e4b2f82..6abf1496b 100644 --- a/scripts/check_indexes.py +++ b/scripts/check_indexes.py @@ -47,12 +47,7 @@ def str2bool(v): err = False for indexed_item in es_instance.indexed_items: - if indexed_item['source']['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']))