Skip to content

Commit

Permalink
add Custom Properties match display and rename 'list' to value_list
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdawson1982 committed Feb 26, 2024
1 parent 260e14f commit 84fb52e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions home/service/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,5 @@ def _get_match_reason_display_names(self):
"description": "Description",
"fieldPaths": "Column name",
"fieldDescriptions": "Column description",
"customProperties": "Custom properties",
}
4 changes: 2 additions & 2 deletions home/templatetags/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@


@register.filter
def lookup(list, lookup_dict):
return sorted([lookup_dict.get(item) for item in list])
def lookup(value_list, lookup_dict):
return sorted([lookup_dict.get(item, "") for item in value_list])

0 comments on commit 84fb52e

Please sign in to comment.