10236 optimize with statement

This commit is contained in:
Arthur 2022-11-17 16:45:20 -08:00
parent 13d7720fd7
commit e66974ef4e

View File

@ -248,8 +248,8 @@
<td>{{ leg.outlet_count }}</td>
<td>{{ leg.allocated }}</td>
{% if powerfeed.available_power %}
<td>{{ powerfeed.available_power|divide:3 }}VA</td>
{% with phase_available=powerfeed.available_power|divide:3 %}
<td>{{ phase_available }}VA</td>
<td>{% utilization_graph leg.allocated|percentage:phase_available %}</td>
{% endwith %}
{% else %}