iron-blogger/templates/email.txt

31 lines
705 B
Plaintext
Raw Normal View History

Subject: IRON BLOGGER results for the week beginning ${week_start.strftime("%F")}
To: iron-blogger@mit.edu
2010-04-16 21:25:10 +00:00
SLACKERS: ${", ".join(sorted([u.username for u in lame]))}
2010-06-01 00:54:47 +00:00
PUNTED for balance greater than $30: ${", ".join(sorted(punt))}
2010-04-13 00:39:59 +00:00
People who posted:
2010-01-10 14:59:49 +00:00
% for u in sorted(good, key=lambda u:u.username):
2009-12-29 19:05:36 +00:00
${u.username}:
% for p in u.weeks[week]:
- ${p['url']}
% endfor
% endfor
% if skip:
People who have not yet started:
2010-01-10 14:59:49 +00:00
% for u in sorted(skip, key=lambda u:u.username):
2009-12-29 19:05:36 +00:00
${u.username}
% endfor
% endif
Beer pool:
This week: $${5 * len(lame)}.00
Total: $${pool}
Paid: $${paid}
Individual debts:
% for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
${"%20s $%d" % (u, v)}
% endfor