From: Nelson Elhage Date: Thu, 10 Jun 2010 01:02:02 +0000 (-0400) Subject: email: Don't show an empty punts section X-Git-Url: https://projects.mako.cc/source/iron-blogger/commitdiff_plain/030f337da797f8c7048db963aff39cfa3e191b68 email: Don't show an empty punts section --- diff --git a/templates/email.txt b/templates/email.txt index aaeff73..e0dd997 100644 --- a/templates/email.txt +++ b/templates/email.txt @@ -2,7 +2,9 @@ Subject: IRON BLOGGER results for the week beginning ${week_start.strftime("%F") To: iron-blogger@mit.edu SLACKERS: ${", ".join(sorted([u.username for u in lame]))} +% if punt: PUNTED for balance greater than $30: ${", ".join(sorted(punt))} +% endif People who posted: % for u in sorted(good, key=lambda u:u.username):