Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update report_template.jinja to sort contents of Occurrence table alphabetically #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Scripts/report_template.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,12 @@ within the list of errors#}
<tr>
<th>MapUnit</th>
{% if val["fds_units"] %}
{% set sorted_units = val["all_units"]|sort %}
{% for k in val["fds_units"] %}
<th>{{k}}</th>
{% endfor %}
</tr>
{% for mu in val["all_units"] %}
{% for mu in sorted_units %}
<tr>
<td>{{mu}}</td>
{% for v in val["fds_units"].values() %}
Expand All @@ -325,6 +326,7 @@ within the list of errors#}
{% endif %}
</table>
</div>

{% endif %}
{% if val["non_spatial"] %}
<div class="report"></div>
Expand All @@ -345,4 +347,4 @@ within the list of errors#}
{% for n in val["inventory"] %}
{{ n }}<br>
{% endfor %}
</div>
</div>