Add aircraft property for Zulu time preference.

This commit is contained in:
bbirchnz
2022-01-09 16:37:57 +11:00
committed by GitHub
parent 194b4dfd6b
commit cefc36a6a9
4 changed files with 50 additions and 4 deletions

View File

@@ -157,6 +157,9 @@ class AircraftType(UnitType[Type[FlyingType]]):
# If true, kneeboards will be generated in metric units
metric_kneeboard: bool
# If true, kneeboards will display zulu times
utc_kneeboard: bool
max_group_size: int
patrol_altitude: Optional[Distance]
patrol_speed: Optional[Speed]
@@ -399,4 +402,5 @@ class AircraftType(UnitType[Type[FlyingType]]):
channel_allocator=radio_config.channel_allocator,
channel_namer=radio_config.channel_namer,
metric_kneeboard=data.get("metric_kneeboard", False),
utc_kneeboard=data.get("utc_kneeboard", False),
)