Skip to content

Commit

Permalink
Do not use negative elevation
Browse files Browse the repository at this point in the history
  • Loading branch information
benyamin ginzburg committed Aug 26, 2023
1 parent 40a4a3e commit 173de46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zmanim_bot/repository/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 173de46

Please sign in to comment.