Merge branch 'master' of kvacek.cz:poletani.cz/api into planovac
This commit is contained in:
Vendored
+1
-1
@@ -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]:
|
||||||
|
|||||||
Reference in New Issue
Block a user