From 5758bb1058c1c057ed3ecddd76e66128637eabf5 Mon Sep 17 00:00:00 2001 From: Fabien-B Date: Mon, 7 Mar 2022 13:38:33 +0100 Subject: [PATCH] [python lib] small fix for the python flight plan lib. (#2834) --- sw/lib/python/flight_plan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/lib/python/flight_plan.py b/sw/lib/python/flight_plan.py index 668463633b..358fa83466 100755 --- a/sw/lib/python/flight_plan.py +++ b/sw/lib/python/flight_plan.py @@ -91,7 +91,7 @@ class FlightPlan: for b_e in blocks_elt.findall("block"): name = get_attrib(b_e, "name") no = get_attrib(b_e, "no") - block = Block(name, no, b_e) + block = Block(name, int(no), b_e) blocks.append(block) return blocks @@ -156,7 +156,7 @@ class Waypoint: class Block: - def __init__(self, name, no, xml): + def __init__(self, name:str, no:int, xml): self.name = name self.no = no self.xml = xml