diff --git a/scripts/build_message_web.py b/scripts/build_message_web.py index 86bda7e90..6bddb29c9 100644 --- a/scripts/build_message_web.py +++ b/scripts/build_message_web.py @@ -63,7 +63,7 @@ def fetch_current_indexed_click_boards(es : Elasticsearch, index_name): for eachHit in response['hits']['hits']: if not 'name' in eachHit['_source']: continue - if index_name == eachHit['_type']: + if '_doc' == eachHit['_type']: if 'mikroe.click' in eachHit['_source']['name']: all_packages.append(eachHit['_source'])