Skip to content

Commit

Permalink
fix: core/db - remove unused function. closes #1561 (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
frwl404 authored Aug 7, 2024
1 parent 9e6916a commit d07c7c0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions keep/api/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -1840,16 +1840,6 @@ def update_preset_options(tenant_id: str, preset_id: str, options: dict) -> Pres
return preset


def get_incident_by_id(incident_id: UUID) -> Incident:
with Session(engine) as session:
incident = session.exec(
select(Incident)
.options(selectinload(Incident.alerts))
.where(Incident.id == incident_id)
).first()
return incident


def assign_alert_to_incident(
alert_id: UUID, incident_id: UUID, tenant_id: str
) -> AlertToIncident:
Expand Down

0 comments on commit d07c7c0

Please sign in to comment.