Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Nov 15, 2024
1 parent a75387c commit efbd9f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/argus/incident/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def close_event(self):

@property
def last_close_or_end_event(self):
return self.all_close_events().last()
return self.all_closing_events().last()

@property
def latest_change_event(self):
Expand Down Expand Up @@ -531,7 +531,7 @@ def repair_end_time(self) -> Optional[bool]:
LOG.warn("Mismatch between self %s end_time and event type: set stateless", self.pk)
return True

close_events = self.all_close_events()
close_events = self.all_closing_events()
if not self.open and close_events.exists():
# end_time is already set closed (golden path)
return False
Expand Down

0 comments on commit efbd9f4

Please sign in to comment.