Rychlost v GPX muze byt float

This commit is contained in:
Michal Kváček
2024-03-23 20:28:11 +01:00
parent ed35de96c9
commit 6a7d51efc5
+1 -1
View File
@@ -88,7 +88,7 @@ class GPXParser:
@cached()
async def get_speed(self) -> List[float]:
nodes = self.run_xpath("//gpx:speed")
return await self.average_sample_numbers([int(node.text) for node in nodes])
return await self.average_sample_numbers([float(node.text) for node in nodes])
@cached()
async def get_magnetic_variation(self) -> List[float]: