Skip to content

Commit

Permalink
Updated case
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Jun 21, 2024
1 parent ed8c6e4 commit e62f48c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ def index_release_to_elasticsearch(es : Elasticsearch, index_name, release_detai
previous_metadata_item = find_item_by_name(metadata_content[1], name_without_extension)

if metadata_item:
update_package = metadata_item['hash'] != previous_metadata_item['hash']
if previous_metadata_item:
update_package = metadata_item['hash'] != previous_metadata_item['hash']
else:
update_package = True

doc = {
'name': name_without_extension,
Expand Down

0 comments on commit e62f48c

Please sign in to comment.