Skip to content

Commit

Permalink
Merge pull request #207 from MikroElektronika/update/reindex-script
Browse files Browse the repository at this point in the history
Removed New Years line from updating prereleased index script
  • Loading branch information
StrahinjaJacimovic authored Jan 13, 2025
2 parents 3eba57c + 4def8ce commit db3b797
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/update_prereleased_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def str2bool(v):

update_data = ''

print('# Hope you are having a great time there. Srecna Nova Godina i Bozic!')
print('# Reindex request has been triggered!')

if args.spreadsheet_update:
print('## Packages that should be indexed today:')
Expand All @@ -119,6 +119,8 @@ def str2bool(v):
if package['display_name'] in update_data:
package['published_at'] = f'{date_to_update}T06:00:00Z'
package['package_changed'] = True
if 'show_package_info' in package:
package['show_package_info'] = True
response = es.index(index=args.index, doc_type=None, id=package['name'], body=package)
if not 'updated' == response['result']:
raise ValueError(f"Failed to update date for {package['display_name']}!")
Expand Down

0 comments on commit db3b797

Please sign in to comment.