Keep blog posts on front page for 30 days.
This commit is contained in:
parent
d3d6fe19ee
commit
1688c69b0f
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class Entry(models.Model):
|
||||||
self.slug))
|
self.slug))
|
||||||
|
|
||||||
def is_recent(self):
|
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?
|
# question: does datetime.now() do a syscall each time is it called?
|
||||||
|
|
||||||
# Ping google blogs and technorati. Taken from
|
# Ping google blogs and technorati. Taken from
|
||||||
|
|
Loading…
Reference in a new issue