From c12c4082fd3a9549bf19223d0d6ea4a2a19076de Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Mon, 10 Sep 2012 12:23:07 -0700 Subject: [PATCH] VotesByAccount: enable new LastModified stuff. --- r2/r2/models/vote.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/r2/r2/models/vote.py b/r2/r2/models/vote.py index a78f35fca..605686a46 100644 --- a/r2/r2/models/vote.py +++ b/r2/r2/models/vote.py @@ -168,6 +168,9 @@ class VotesByAccount(tdb_cassandra.DenormalizedRelation): _thing1_cls = Account _read_consistency_level = tdb_cassandra.CL.ONE + # TODO: enable writes when CassandraVote is phased out + _write_last_modified = False + @classmethod def rel(cls, thing1_cls, thing2_cls): if (thing1_cls, thing2_cls) == (Account, Link): @@ -192,6 +195,7 @@ class LinkVotesByAccount(VotesByAccount): _use_db = True _thing2_cls = Link _views = [] + _last_modified_name = "LinkVote" @classmethod def _fast_query(cls, subject, objects, properties=None): @@ -204,6 +208,7 @@ class CommentVotesByAccount(VotesByAccount): _use_db = True _thing2_cls = Comment _views = [] + _last_modified_name = "CommentVote" class VoteDetailsByThing(tdb_cassandra.View):