- <tr> <td> This week: </td> <td> $${5 * len(lame)}.00 </td> </tr>
- <tr> <td> Total: </td> <td> ${pool}.00 </td> </tr>
+ <tr> <td> This week: </td> <td> $${5 * len(lame)} </td> </tr>
+ <tr> <td> Total: </td> <td> $${pool} </td> </tr>
+ <tr> <td> Paid: </td> <td> $${paid} </td> </tr>
+</table>
+
+<h2>Debts:</h2>
+<% i = 0 %>
+<table class="debts">
+% for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
+% if i % 3 == 0:
+<tr>\
+% endif
+<% i += 1 %>\
+<td class="user">${u}</td> <td class="money">$${v}</td>\
+% if i % 3 == 0:
+</tr>
+%endif
+% endfor
+% if i % 3 != 0:
+</tr>
+%endif