2010-08-06 02:11:03 +00:00
|
|
|
## -*- coding: utf-8 -*-
|
2012-10-12 19:24:47 +00:00
|
|
|
From: ${mail}
|
|
|
|
Content-Type: text/plain; charset=utf-8
|
2009-12-29 04:16:55 +00:00
|
|
|
Subject: IRON BLOGGER results for the week beginning ${week_start.strftime("%F")}
|
2012-01-24 21:49:58 +00:00
|
|
|
To: ${mail}
|
2009-12-28 23:41:20 +00:00
|
|
|
|
2012-10-07 07:55:42 +00:00
|
|
|
SLACKERS:
|
|
|
|
<% lame=0 %>
|
|
|
|
% for u in sorted(userlist, key=lambda u:u.name[u.name.rfind(' '):].lower()):
|
|
|
|
% for b in u.lameblogs:
|
|
|
|
<% lame+=1 %> - ${u.name} in ${b}
|
|
|
|
% endfor
|
|
|
|
% endfor
|
|
|
|
|
2010-06-10 01:02:02 +00:00
|
|
|
% if punt:
|
2010-07-27 13:58:58 +00:00
|
|
|
PUNTED for balance ≥$30: ${", ".join(sorted(punt))}
|
2010-06-10 01:02:02 +00:00
|
|
|
% endif
|
2010-04-13 00:39:59 +00:00
|
|
|
|
2009-12-28 23:41:20 +00:00
|
|
|
People who posted:
|
2012-10-07 07:55:42 +00:00
|
|
|
% for u in sorted(userlist, key=lambda u:u.name[u.name.rfind(' '):].lower()):
|
|
|
|
% for b in u.goodblogs:
|
|
|
|
${u.name} in ${b} (${u.username}):
|
|
|
|
% for p in u.posts[b][week]:
|
|
|
|
- ${p['url']}
|
|
|
|
% endfor
|
2009-12-28 23:41:20 +00:00
|
|
|
% endfor
|
|
|
|
% endfor
|
|
|
|
|
2010-01-04 15:46:12 +00:00
|
|
|
% if skip:
|
2009-12-28 23:41:20 +00:00
|
|
|
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}
|
2009-12-28 23:41:20 +00:00
|
|
|
% endfor
|
2010-01-04 15:46:12 +00:00
|
|
|
% endif
|
2009-12-28 23:41:20 +00:00
|
|
|
|
2012-08-13 09:27:39 +00:00
|
|
|
% if skipped_users:
|
|
|
|
People who are currently skipped:
|
|
|
|
% for u in sorted(skipped_users, key=lambda u:u.username):
|
|
|
|
${u.username}
|
|
|
|
% endfor
|
|
|
|
% endif
|
|
|
|
|
2009-12-28 23:41:20 +00:00
|
|
|
Beer pool:
|
2012-10-07 07:55:42 +00:00
|
|
|
This Week: € ${5 * lame}
|
2012-01-19 18:42:32 +00:00
|
|
|
Total: € ${pool}
|
|
|
|
Paid: € ${paid}
|
2012-02-24 13:13:24 +00:00
|
|
|
Events: € ${event}
|
2010-05-24 00:33:53 +00:00
|
|
|
Individual debts:
|
|
|
|
% for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
|
2012-01-19 18:42:32 +00:00
|
|
|
${u"%20s %d \u20AC" % (u, v)}
|
2010-05-24 00:33:53 +00:00
|
|
|
% endfor
|
2012-07-09 19:02:51 +00:00
|
|
|
|
|
|
|
PREVIOUSLY PUNTED (pay € 30 balance to return):
|
|
|
|
% for (u) in sorted(punted, key=lambda p:p.username):
|
|
|
|
${"%20s (%s)" % (u.username, u.end)}
|
|
|
|
% endfor
|