Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Implement option to hide total receiving from others (issue #1683) #1721

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
fix community pages
Changaco committed Jan 1, 2014
commit f55fe622a524bd6fca078bdfe4971862347de3f8
4 changes: 2 additions & 2 deletions www/for/%slug/index.html.spt
Original file line number Diff line number Diff line change
@@ -124,7 +124,7 @@ if community.nmembers >= website.NMEMBERS_THRESHOLD:
givers = utter_hack(website.db, query_cache.all("""
-- top givers on community page

SELECT tipper AS username, anonymous_giving, sum(amount) AS amount
SELECT tipper AS username, anonymous_giving AS anonymous, sum(amount) AS amount
FROM ( SELECT DISTINCT ON (tipper, tippee)
amount
, tipper
@@ -155,7 +155,7 @@ if community.nmembers >= website.NMEMBERS_THRESHOLD:
receivers = utter_hack(website.db, query_cache.all("""
-- top receivers on community page

SELECT tippee AS username, anonymous_receiving, claimed_time, sum(amount) AS amount
SELECT tippee AS username, anonymous_receiving AS anonymous, claimed_time, sum(amount) AS amount
FROM ( SELECT DISTINCT ON (tipper, tippee)
amount
, tippee