Skip to content

Commit

Permalink
Fixed superfluous table elements in class based tabulation interval f…
Browse files Browse the repository at this point in the history
…ix en route to #126.
  • Loading branch information
dgets committed May 11, 2019
1 parent 2a70051 commit ed4e51a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dataview/templates/dataview/class_data_summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h2>Usages Per Substance in Classification</h2>
{% for use_group in usages %}
<a name="{{ use_group.0 }}"><h4>{{ use_group.0 }}</h4></a>

{% if not interval_error %}
{% if use_group.7 is not False %}
<table summary="{{ use_group.0 }} Data Summary">
<tr><td>
{% endif %}
Expand All @@ -43,7 +43,7 @@ <h2>Usages Per Substance in Classification</h2>
<td>{{ use_group.6 }}</td>
</tr>
</table>
{% if not interval_error %}
{% if use_group.7 is not False %}
</td>
<td>
<table summary="Interval Stats">
Expand Down
3 changes: 2 additions & 1 deletion dataview/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ def class_data_summary(request, class_id):
else:
sub_usage_stats_tuple.append((subs[cntr], usages_list[cntr], sub_usage_stats[cntr]['total'],
len(usages_list[cntr]), sub_usage_stats[cntr]['average'],
sub_usage_stats[cntr]['highest'], sub_usage_stats[cntr]['lowest']))
sub_usage_stats[cntr]['highest'], sub_usage_stats[cntr]['lowest'],
False))

cntr += 1

Expand Down

0 comments on commit ed4e51a

Please sign in to comment.