Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandra-prognimak committed Oct 27, 2023
1 parent b615fd5 commit 985316e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __eq__(self, other: Distance | int | float) -> bool:
return self.km == self.get_km(other)

def __le__(self, other: Distance | int | float) -> bool:
return self.km <= self.get_km(other)
return not self.__gt__(other)

def __ge__(self, other: Distance | int | float) -> bool:
return self.km >= self.get_km(other)
return not self.__lt__(other)

0 comments on commit 985316e

Please sign in to comment.