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
|
#Influx data
|
||||||
engine/
|
engine/
|
||||||
influxd.bolt
|
influxd.bolt
|
||||||
|
influxdb
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user