From 87b6aed0a8b2a6d226d511280c0fa0d1d1591418 Mon Sep 17 00:00:00 2001 From: Anish Reddy Ravula <2anishreddy@gmail.com> Date: Thu, 2 Nov 2023 12:13:01 -0400 Subject: [PATCH] use __repr__ to format the pub in notif email --- projects/pub_views.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/projects/pub_views.py b/projects/pub_views.py index 7da51a0f..c81e9f47 100644 --- a/projects/pub_views.py +++ b/projects/pub_views.py @@ -26,10 +26,7 @@ def _send_publication_notification(charge_code, pubs): subject = f"Project {charge_code} added new publications" - formatted_pubs = [ - f"
  • {pub}

  • " - for pub in pubs - ] + formatted_pubs = [f"
  • {pub.__repr__()}

  • " for pub in pubs] body = f"""

    Please review the following publications added by project {charge_code}: