Only show repeat if data is present
This commit is contained in:
parent
d2bda44411
commit
e8b41b402e
3
.gitignore
vendored
3
.gitignore
vendored
@ -63,4 +63,5 @@ target/
|
||||
|
||||
#Influx data
|
||||
engine/
|
||||
influxd.bolt
|
||||
influxd.bolt
|
||||
influxdb
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user