From 173de46c30ee514811d4b2ada6ebe9f06cb62c7a Mon Sep 17 00:00:00 2001 From: benyamin ginzburg Date: Sun, 27 Aug 2023 01:04:56 +0300 Subject: [PATCH] Do not use negative elevation --- zmanim_bot/repository/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zmanim_bot/repository/models.py b/zmanim_bot/repository/models.py index 19ca4ba..2449475 100644 --- a/zmanim_bot/repository/models.py +++ b/zmanim_bot/repository/models.py @@ -32,7 +32,8 @@ class Location(EmbeddedModel): @property def coordinates(self) -> Tuple[float, float, int]: - return self.lat, self.lng, self.elevation + elevation = self.elevation if self.elevation >= 0 else 0 + return self.lat, self.lng, elevation class OmerSettings(EmbeddedModel):