import locale from gittip import db # ==== ^L ngoals = db.fetchone("SELECT count(id) FROM participants WHERE goal > 0")\ ['count'] goals = db.fetchall(""" SELECT * FROM goal_summary ORDER BY percentage DESC , goal ASC , id ASC """) # ==== ^L {% extends templates/base.html %} {% block page %}

About

{{ ngoals }} people have set a weekly funding goal.

{% for row in goals %} {% end %}
Participant Goal ($) Backed ($, %)
{{ row['id'] }} {{ locale.format("%.2f", row['goal'], grouping=True) }} {{ locale.format("%.2f", row['amount'], grouping=True) }} {{ "%5.1f" % row['percentage'] }}
{{ escape(row['statement']) }}
{% end %}