Skip to content

Commit

Permalink
Merge pull request #75 from cmu-delphi/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
dmytrotsko authored Dec 26, 2024
2 parents db371e9 + 230aa2e commit 25ee7a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/signals/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ class Meta:
]
import_id_fields: list[str] = ["name", "source"]
store_instance = True
skip_unchanged = True

def before_import_row(self, row, **kwargs) -> None:
fix_boolean_fields(row)
Expand Down
12 changes: 8 additions & 4 deletions src/templates/signal_sets/signal_sets.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ <h2 class="accordion-header" id="flush-heading_{{ form.data_source.auto_id }}">
<th></th>
<th>Name</th> <!--# TODO: add tooltip on hover with description here -->
<th>Pathogen(s) <br> Syndrome(s)</th>
<th>Type(s) of Data</th>
<th>Geographic Scope</th>
<th>Geographic Granularity</th>
<th>Temporal scope Start</th>
Expand Down Expand Up @@ -282,9 +281,6 @@ <h2 class="accordion-header" id="flush-heading_{{ form.data_source.auto_id }}">
</span>
{% endfor %}
</td>
<td>
{{ signal_set.data_type }}
</td>
<td>
{{ signal_set.geographic_scope }}
</td>
Expand Down Expand Up @@ -371,6 +367,8 @@ <h2 class="accordion-header" id="flush-heading_{{ form.data_source.auto_id }}">
});

table.columns.adjust()


})
function showAllOptions(event, parentDiv) {
event.preventDefault();
Expand Down Expand Up @@ -581,6 +579,12 @@ <h2 class="accordion-header" id="flush-heading_{{ form.data_source.auto_id }}">

});


// Add event listener for filtering.
window.addEventListener('beforeunload', () => {
document.getElementById('filterSignalSetsForm').reset();
});


</script>
{% endblock %}

0 comments on commit 25ee7a5

Please sign in to comment.