Skip to content

Commit

Permalink
use __repr__ to format the pub in notif email
Browse files Browse the repository at this point in the history
  • Loading branch information
AnishReddyRavula committed Nov 2, 2023
1 parent 5d3b32c commit 87b6aed
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions projects/pub_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@

def _send_publication_notification(charge_code, pubs):
subject = f"Project {charge_code} added new publications"
formatted_pubs = [
f"<li>{pub}<br><br></li>"
for pub in pubs
]
formatted_pubs = [f"<li>{pub.__repr__()}<br><br></li>" for pub in pubs]
body = f"""
<p>Please review the following publications added by
project {charge_code}:
Expand Down

0 comments on commit 87b6aed

Please sign in to comment.