Skip to content

Commit

Permalink
update bool fields to use true/false rather than 0/1
Browse files Browse the repository at this point in the history
  • Loading branch information
azneto committed Aug 10, 2022
1 parent b115a21 commit 29a235d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions machado/templates/search_facet.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ <h3>Filters</h3>
<input type="checkbox" name="selected_facets" id="selected_facets" value="{{ facet }}:{{ item.0 }}" {% if facet_item in selected_facets %}checked{% endif %}>
<em>{{ item.0|capfirst }}</em>
{% elif facet == "orthology" %}
{% if item.0 == 'false' %}
{% if item.0 == 0 %}
<input type="checkbox" name="selected_facets" id="selected_facets" value="{{ facet }}:false" {% if "orthology:false" in selected_facets %}checked{% endif %}>
no orthology
{% else %}
<input type="checkbox" name="selected_facets" id="selected_facets" value="{{ facet }}:true" {% if "orthology:true" in selected_facets %}checked{% endif %}>
orthology
{% endif %}
{% elif facet == "coexpression" %}
{% if item.0 == 'false' %}
{% if item.0 == 0 %}
<input type="checkbox" name="selected_facets" id="selected_facets" value="{{ facet }}:false" {% if "coexpression:false" in selected_facets %}checked{% endif %}>
no coexpression groups
{% else %}
Expand Down

0 comments on commit 29a235d

Please sign in to comment.