parent
d57cf88c1e
commit
7342784b99
|
@ -239,7 +239,7 @@ past::
|
||||||
|
|
||||||
def was_published_recently(self):
|
def was_published_recently(self):
|
||||||
now = timezone.now()
|
now = timezone.now()
|
||||||
return now - datetime.timedelta(days=1) <= self.pub_date < now
|
return now - datetime.timedelta(days=1) <= self.pub_date <= now
|
||||||
|
|
||||||
and run the test again::
|
and run the test again::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue