Only show repeat if data is present

This commit is contained in:
Alexander Hosking 2022-09-24 12:00:02 -04:00
parent d2bda44411
commit e8b41b402e
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -63,4 +63,5 @@ target/
#Influx data
engine/
influxd.bolt
influxd.bolt
influxdb

View File

@ -54,7 +54,9 @@
</div>
</div><br>
<input type="submit" value="Go">
{% if data %}
<a href="{{ url_for('repeat_last_odometer', odometer=data[0]['odometer'] ) }}">Repeat</a>
{% endif %}
</div>
</form>
<br>