Skip to content

Commit

Permalink
fix: get the reports list from status_list action
Browse files Browse the repository at this point in the history
  • Loading branch information
alycejenni committed Jul 4, 2024
1 parent 9c3c2b5 commit d16a7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/nhm/lib/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,7 @@ def get_status_indicator():
return 'red'

try:
status_reports = toolkit.get_action('status_list')({}, {})
status_reports = toolkit.get_action('status_list')({}, {}).get('reports', [])
except KeyError:
# if the action doesn't exist
status_reports = []
Expand Down

0 comments on commit d16a7df

Please sign in to comment.