Remove unused def render_resolution_notes_for_csv_report
This commit is contained in:
parent
6ad30bfd33
commit
249e4067c4
1 changed files with 0 additions and 19 deletions
|
|
@ -5,7 +5,6 @@ from typing import Optional, TypedDict
|
|||
from urllib.parse import urljoin
|
||||
from uuid import uuid1
|
||||
|
||||
import pytz
|
||||
from celery import uuid as celery_uuid
|
||||
from django.apps import apps
|
||||
from django.conf import settings
|
||||
|
|
@ -1611,24 +1610,6 @@ class AlertGroup(AlertGroupSlackRenderingMixin, EscalationSnapshotMixin, models.
|
|||
def has_resolution_notes(self):
|
||||
return self.resolution_notes.exists()
|
||||
|
||||
def render_resolution_notes_for_csv_report(self):
|
||||
result = ""
|
||||
|
||||
resolution_notes = self.resolution_notes.all().prefetch_related("resolution_note_slack_message")
|
||||
if len(resolution_notes) > 0:
|
||||
result += "Notes: "
|
||||
result += " ".join(
|
||||
[
|
||||
"{} ({} by {}), ".format(
|
||||
resolution_note.text,
|
||||
resolution_note.created_at.astimezone(pytz.utc),
|
||||
resolution_note.author_verbal(mention=True),
|
||||
)
|
||||
for resolution_note in resolution_notes
|
||||
]
|
||||
)
|
||||
return result
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
if self.resolved:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue