put in a temporary hack in the voting code to limit voting to the last 30 days. To be removed when data migration is finished

This commit is contained in:
KeyserSosa
2009-05-16 05:03:40 -07:00
parent 0ec2cb39d7
commit 52bf2f0777

View File

@@ -700,7 +700,8 @@ class ApiController(RedditController):
spam = (c.user._spam or
errors.BANNED_IP in c.errors or
errors.CHEATER in c.errors)
if thing:
# TODO: temporary hack until we migrate the rest of the vote data
if thing and thing._date > datetime(2009, 4, 17, 0, 0, 0, 0, g.tz):
dir = (True if dir > 0
else False if dir < 0
else None)