Skip to content

Commit

Permalink
Fix readme usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed May 15, 2024
1 parent b6ee64e commit 40a4f2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion catalog_reader/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def get_app_details(
}))
unhealthy_versions = []
desired_keys_mapping = {
'app_readme': 'readme',
'maintainers': 'maintainers',
'description': 'description',
'title': 'title',
Expand All @@ -76,6 +75,9 @@ def get_app_details(
item_data['latest_app_version'] = app_metadata['app_version']
item_data['latest_human_version'] = get_human_version(app_metadata['app_version'], k)

if not item_data['app_readme']:
item_data['app_readme'] = v['readme']

if unhealthy_versions:
item_data['healthy_error'] = f'Errors were found with {", ".join(unhealthy_versions)} version(s)'
else:
Expand Down

0 comments on commit 40a4f2f

Please sign in to comment.