Changeset - 1688c69b0f3b
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 9 years ago 2012-02-15 23:13:30
bkuhn@ebb.org
Keep blog posts on front page for 30 days.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
www/conservancy/apps/blog/models.py
Show inline comments
...
 
@@ -47,7 +47,7 @@ class Entry(models.Model):
 
                   self.slug))
 

	
 
    def is_recent(self):
 
        return self.pub_date > (datetime.now() - timedelta(days=14))
 
        return self.pub_date > (datetime.now() - timedelta(days=30))
 
        # question: does datetime.now() do a syscall each time is it called?
 

	
 
    # Ping google blogs and technorati.  Taken from
0 comments (0 inline, 0 general)