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

1
.gitignore vendored
View File

@ -64,3 +64,4 @@ target/
#Influx data #Influx data
engine/ engine/
influxd.bolt influxd.bolt
influxdb

View File

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