From 2171b300a855d40ca9f98eb9a575f4059c8e96aa Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Wed, 12 Sep 2012 20:39:56 -0700 Subject: [PATCH] vote: Fix VoteDetailsByThing aggregating backwards. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Voter and votee were swapped. Déjà vu! --- r2/r2/models/vote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/models/vote.py b/r2/r2/models/vote.py index 605686a46..7426f310c 100644 --- a/r2/r2/models/vote.py +++ b/r2/r2/models/vote.py @@ -233,7 +233,7 @@ class VoteDetailsByThing(tdb_cassandra.View): organic=getattr(pgvote, "organic", False), ) - cls._set_values(voter._id36, {votee._id36: json.dumps(details)}) + cls._set_values(votee._id36, {voter._id36: json.dumps(details)}) @tdb_cassandra.view_of(LinkVotesByAccount)