From 030f337da797f8c7048db963aff39cfa3e191b68 Mon Sep 17 00:00:00 2001 From: Nelson Elhage Date: Wed, 9 Jun 2010 21:02:02 -0400 Subject: [PATCH] email: Don't show an empty punts section --- templates/email.txt | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.39.5