Skip to content

Commit

Permalink
chore: rename filtered dashboard filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Sep 20, 2024
1 parent a45b981 commit 834ea22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def translate_column_bool(column_name):
'</a>'
)
"""
def filtered_dashboard(dashboard_slug, column_name, filter_id):
def get_filtered_dashboard_link(dashboard_slug, column_name, filter_id):
"""
Creates a link to a dashboard with filters preloaded given a dashboard-slug, a column_name and a filter_id
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def can_view_courses_wrapper(*args, **kwargs):
'can_view_courses': can_view_courses_wrapper,
'translate_column': translate_column,
'translate_column_bool': translate_column_bool,
'filtered_dashboard': filtered_dashboard,
'get_filtered_dashboard_link': get_filtered_dashboard_link,
{% for filter in SUPERSET_EXTRA_JINJA_FILTERS %}'{{ filter }}': {{filter}},{% endfor %}
}

Expand Down

0 comments on commit 834ea22

Please sign in to comment.