Skip to content

Commit

Permalink
Complete 'EventsQueueKey.__lt__' magic method
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Jul 20, 2020
1 parent 3cb5943 commit 47025e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sect/core/events_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def __lt__(self, other: 'EventsQueueKey') -> bool:
elif event.from_left is not other_event.from_left:
return other_event.from_left
else:
end_x, end_y = event.end
other_end_x, other_end_y = other_event.end
_, end_y = event.end
_, other_end_y = other_event.end
return end_y < other_end_y


Expand Down

0 comments on commit 47025e9

Please sign in to comment.