Skip to content

Commit

Permalink
Fix for vendor/class search on analysis page (#1006)
Browse files Browse the repository at this point in the history
Link to vendor and class search still used MongoDB syntax. New `{"key": "value"}` syntax works because there is no longer an implicit substring matching.
  • Loading branch information
jstucke authored Apr 4, 2023
1 parent 0829791 commit a1044e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<i class="fas fa-{{ icon }}"></i>
</td>

{% set query_str = '{{"{}": {{"$eq": "{}"}}}}'.format(query, content) if query else None %}
{% set query_str = '{{"{}": "{}"}}'.format(query, content) if query else None %}
<td class="border-dark" colspan="{{ colspan }}" style="word-break: break-all; word-wrap: break-word; overflow-wrap: break-word;" {% if query %}
onclick="location.href='/database/browse?query={{ query_str | urlencode }}'"
data-placement="bottom"
Expand Down

0 comments on commit a1044e9

Please sign in to comment.