]> projects.mako.cc - iron-blogger/commitdiff
email: Don't show an empty punts section
authorNelson Elhage <nelhage@ksplice.com>
Thu, 10 Jun 2010 01:02:02 +0000 (21:02 -0400)
committerNelson Elhage <nelhage@ksplice.com>
Thu, 10 Jun 2010 01:02:02 +0000 (21:02 -0400)
templates/email.txt

index aaeff73207bb205ab98e3cc6a15b5b1b5fb0abf1..e0dd997c49db3ac9e942ccbdcee8646c1ed755b9 100644 (file)
@@ -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):

Benjamin Mako Hill || Want to submit a patch?