Skip to content

Commit

Permalink
handle when task stats are 0
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed May 30, 2024
1 parent 8a34222 commit 5b1da7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iceprod/website/data/www_templates/dataset_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ <h3>Completion Statistics</h3>
<th>Eff</th>
</tr>
{% for t in task_stats %}
{% if 'avg_hrs' in task_stats[t] and task_stats[t]['avg_hrs'] and 'stddev_hrs' in task_stats[t] and task_stats[t]['stddev_hrs'] %}
{% if 'avg_hrs' in task_stats[t] and task_stats[t]['avg_hrs'] is not None and 'stddev_hrs' in task_stats[t] and task_stats[t]['stddev_hrs'] is not None %}
<tr>
<td>{{ t }}</td>
<td>{{ '{:0.2f}'.format(task_stats[t]['avg_hrs']) }} / {{ '{:0.2f}'.format(task_stats[t]['stddev_hrs']) }}</td>
Expand Down

0 comments on commit 5b1da7f

Please sign in to comment.