From 6525d0a46d3678a29340d4f280c05f64db302338 Mon Sep 17 00:00:00 2001 From: Dakota Date: Mon, 2 Sep 2024 18:07:23 +0200 Subject: [PATCH] fix: UserOverView.vortex_floor - missing maxFloorIndex key --- pyZUnivers/overview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyZUnivers/overview.py b/pyZUnivers/overview.py index 2525b41..853bc67 100644 --- a/pyZUnivers/overview.py +++ b/pyZUnivers/overview.py @@ -68,7 +68,7 @@ def vortex_end_date(self) -> datetime: @property def vortex_floor(self) -> int: - if isinstance(self.__vortex_stats, Vortex) or not self.__vortex_stats['maxFloorIndex']: + if isinstance(self.__vortex_stats, Vortex) or not 'maxFloorIndex' in self.__vortex_stats: return 0 if self.__vortex_stats['maxFloorIndex'] == 0: