Add Fuel costs when they exist
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ahosking 2022-11-04 15:17:16 -04:00
parent 4aab99bcbc
commit 277930acde

View File

@ -77,6 +77,7 @@ Last Mileage
<th scope="col">Oil</th>
<th scope="col">Litres</th>
<th scope="col">$/Litre</th>
<th scope="col">$ Total</th>
</tr>
</thead>
<tbody>
@ -87,6 +88,9 @@ Last Mileage
<td>{{ point['oilhealth'] }}</td>
<td>{{ point['fuel'] }}</td>
<td>{{ point['fuelcost'] }}</td>
{% if point['fuel'] %}
<td>{{ '%0.2f' % ((point['fuel'] | float) * (point['fuelcost'] | float)) }}</td>
{% endif %}
</tr>
{% endfor %}
</tbody>