X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/60b087f32a89cbce36964c846fd5f0ea27f729e3..e66cf1bdbe9a1689d3f7b28c907bbd4945137335:/templates/week.tmpl
diff --git a/templates/week.tmpl b/templates/week.tmpl
index 95ff256..d4ca365 100644
--- a/templates/week.tmpl
+++ b/templates/week.tmpl
@@ -1,20 +1,22 @@
+Results for week beginning ${week_start.strftime("%F")}
People who posted
-
+
% for u in sorted(good, key=lambda u:u.username):
-
- ${u.username}:
+
- ${u.username}:
+-
-
+
% endfor
-
+
People who failed to post
% for u in sorted(lame, key=lambda u:u.username):
-- ${u.username}
+- ${u.username}
% endfor
@@ -22,13 +24,32 @@
People who have not yet started
% for u in sorted(skip, key=lambda u:u.username):
- - ${u.username}
+ - ${u.username}
% endfor
% endif
Beer pool:
- This week: | $${5 * len(lame)}.00 |
- Total: | ${pool}.00 |
+ This week: | $${5 * len(lame)} |
+ Total: | $${pool} |
+ Paid: | $${paid} |
+
+
+Debts:
+<% i = 0 %>
+
+% for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
+% if i % 3 == 0:
+\
+% endif
+<% i += 1 %>\
+${u} | $${v} | \
+% if i % 3 == 0:
+
+%endif
+% endfor
+% if i % 3 != 0:
+
+%endif