Skip to content

Commit

Permalink
Updated image indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Sep 16, 2024
1 parent 8af1b28 commit e5c569a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os, time, argparse, requests, hashlib, shutil
import os, re, time, argparse, requests, hashlib, shutil
from elasticsearch import Elasticsearch
from datetime import datetime, timezone

Expand Down Expand Up @@ -287,7 +287,7 @@ def index_release_to_elasticsearch(es : Elasticsearch, index_name, release_detai
'display_name': metadata_content[0]['packages'][package_name]['display_name'],
'author': 'MIKROE',
'hidden': False,
"icon": metadata_content[0]['packages'][package_name]['icon'],
"icon": re.sub(r'(mikrosdk_v2/)(.*?)(/resources)', r'\1master\3', metadata_content[0]['packages'][package_name]['icon']),
'type': metadata_content[0]['packages'][package_name]['type'],
'version': board_version_new,
'created_at' : asset['created_at'],
Expand Down

0 comments on commit e5c569a

Please sign in to comment.