Skip to content

Commit

Permalink
Update mail.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sondregronas committed Aug 18, 2023
1 parent 7351066 commit 8af90d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BookingSystem/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def formatted_overdue_items(items: list) -> str:
</table>
<br><br>
"""
if not items:
return ''
pairs = {item.lender_association_mail: [item2.mail_repr()
for item2 in items
if item2.lender_association_mail == item.lender_association_mail]
Expand Down

0 comments on commit 8af90d6

Please sign in to comment.