Skip to content

Commit

Permalink
Added guard for indexing only to test initially
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Nov 1, 2024
1 parent a4905ce commit 2938bbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion scripts/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,11 @@ def str2bool(v):
db_version = remove_duplicate_indexed_files(
es, args.select_index
)

# Index microchip device family packs
index_microchip_packs(es, args.select_index)
if 'live' not in args.select_index:
# TODO - uncomment once LIVE test is confirmed to work
index_microchip_packs(es, args.select_index)

# Now index the new release
index_release_to_elasticsearch(
Expand Down
2 changes: 1 addition & 1 deletion scripts/reupload_databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ async def main(

## Step 11 add microchip info to programmers table
custom_link = 'https://packs.download.microchip.com/index.idx'
if not mcus_only:
if not mcus_only and 'Test' == index:
# Download the index file
xml_content = MCHP.download_index_file(custom_link)
converted_data, item_list_unused = MCHP.convert_idx_to_json(xml_content)
Expand Down

0 comments on commit 2938bbf

Please sign in to comment.