667eaef7a86da25b45cb320dfb46a2a3a522bc5d
[iron-blogger] / templates / email.txt
1 ## -*- coding: utf-8 -*-
2 Subject: IRON BLOGGER results for the week beginning ${week_start.strftime("%F")}
3 To: iron-blogger@mako.cc
4
5 SLACKERS: ${", ".join(sorted([u.username for u in lame]))}
6 % if punt:
7 PUNTED for balance ≥$30: ${", ".join(sorted(punt))}
8 % endif
9
10 People who posted:
11 % for u in sorted(good, key=lambda u:u.username):
12  ${u.username}:
13  % for p in u.weeks[week]:
14  - ${p['url']}
15  % endfor
16 % endfor
17
18 % if skip:
19 People who have not yet started:
20 % for u in sorted(skip,  key=lambda u:u.username):
21  ${u.username}
22 % endfor
23 % endif
24
25 Beer pool:
26 This week: $${5 * len(lame)}.00
27 Total:     $${pool}
28 Paid:      $${paid}
29
30 Individual debts:
31 % for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
32 ${"%20s $%d" % (u, v)}
33 % endfor
34
35 PREVIOUSLY PUNTED (pay $30 balance to return): 
36 % for (u) in sorted(punted, key=lambda p:p.username):
37 ${"%20s (%s)" % (u.username, u.end)}
38 % endfor

Benjamin Mako Hill || Want to submit a patch?