diff options
| author | Daniel Schadt <kingdread@gmx.de> | 2025-11-01 14:13:41 +0100 |
|---|---|---|
| committer | Daniel Schadt <kingdread@gmx.de> | 2025-11-01 14:13:41 +0100 |
| commit | a32babc70accef5121b1e588523663628d2dfdeb (patch) | |
| tree | 9c921d65306eb77b1904f9c453568fc52825cb64 /fietsboek/convert.py | |
| parent | f5b6255f19433ac6db62658f24da73f62192c810 (diff) | |
| download | fietsboek-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.py | 2 |
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, )) |
