iron-blogger/templates/email.txt

39 lines
913 B
Plaintext
Raw Normal View History

2010-08-06 02:11:03 +00:00
## -*- coding: utf-8 -*-
Subject: IRON BLOGGER results for the week beginning ${week_start.strftime("%F")}
2012-01-24 21:49:58 +00:00
To: ${mail}
2010-04-16 21:25:10 +00:00
SLACKERS: ${", ".join(sorted([u.username for u in lame]))}
% if punt:
2010-07-27 13:58:58 +00:00
PUNTED for balance ≥$30: ${", ".join(sorted(punt))}
% endif
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)}
Total: € ${pool}
Paid: € ${paid}
2012-02-24 13:13:24 +00:00
Events: € ${event}
Individual debts:
% for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
${u"%20s %d \u20AC" % (u, v)}
% endfor
PREVIOUSLY PUNTED (pay € 30 balance to return):
% for (u) in sorted(punted, key=lambda p:p.username):
${"%20s (%s)" % (u.username, u.end)}
% endfor