AUTOPUNT
[iron-blogger] / templates / email.txt
1 Subject: IRON BLOGGER results for the week beginning ${week_start.strftime("%F")}
2 To: iron-blogger@mit.edu
3
4 SLACKERS: ${", ".join(sorted([u.username for u in lame]))}
5 PUNTED for balance greater than $30: ${", ".join(sorted(punt))}
6
7 People who posted:
8 % for u in sorted(good, key=lambda u:u.username):
9  ${u.username}:
10  % for p in u.weeks[week]:
11  - ${p['url']}
12  % endfor
13 % endfor
14
15 % if skip:
16 People who have not yet started:
17 % for u in sorted(skip,  key=lambda u:u.username):
18  ${u.username}
19 % endfor
20 % endif
21
22 Beer pool:
23 This week: $${5 * len(lame)}.00
24 Total:     $${pool}
25 Paid:      $${paid}
26
27 Individual debts:
28 % for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
29 ${"%20s $%d" % (u, v)}
30 % endfor

Benjamin Mako Hill || Want to submit a patch?