Merge branch 'master' of kvacek.cz:poletani.cz/api into planovac

This commit is contained in:
Michal Kváček
2024-03-23 20:28:21 +01:00
+1 -1
View File
@@ -88,7 +88,7 @@ class GPXParser:
@cached() @cached()
async def get_speed(self) -> List[float]: async def get_speed(self) -> List[float]:
nodes = self.run_xpath("//gpx:speed") 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() @cached()
async def get_magnetic_variation(self) -> List[float]: async def get_magnetic_variation(self) -> List[float]: