aboutsummaryrefslogtreecommitdiff
path: root/fietsboek/convert.py
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2025-11-01 14:13:41 +0100
committerDaniel Schadt <kingdread@gmx.de>2025-11-01 14:13:41 +0100
commita32babc70accef5121b1e588523663628d2dfdeb (patch)
tree9c921d65306eb77b1904f9c453568fc52825cb64 /fietsboek/convert.py
parentf5b6255f19433ac6db62658f24da73f62192c810 (diff)
downloadfietsboek-a32babc70accef5121b1e588523663628d2dfdeb.tar.gz
fietsboek-a32babc70accef5121b1e588523663628d2dfdeb.tar.bz2
fietsboek-a32babc70accef5121b1e588523663628d2dfdeb.zip
don't choke if no timestamp or elevation is given
This is a continuation of the previous commit, useful for synthetic tracks. We don't really care about the value, it shouldn't be shown anyway.
Diffstat (limited to 'fietsboek/convert.py')
-rw-r--r--fietsboek/convert.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fietsboek/convert.py b/fietsboek/convert.py
index 7815ef4..d0d1a19 100644
--- a/fietsboek/convert.py
+++ b/fietsboek/convert.py
@@ -85,7 +85,7 @@ def from_gpx(data: bytes) -> Track:
points.append(geo.Point(
longitude=point.longitude,
latitude=point.latitude,
- elevation=point.elevation,
+ elevation=point.elevation or 0.0,
time_offset=time_offset,
))