HBR - handle two month issues

This commit is contained in:
Kovid Goyal 2013-02-03 09:10:00 +05:30
parent 759998fc4b
commit c0c6a177aa

View file

@ -62,7 +62,8 @@ def hbr_get_toc(self):
today = date.today()
future = today + timedelta(days=30)
for x in [x.strftime('%y%m') for x in (future, today)]:
past = today - timedelta(days=30)
for x in [x.strftime('%y%m') for x in (future, today, past)]:
url = self.INDEX + x
soup = self.index_to_soup(url)
if (not soup.find(text='Issue Not Found') and not soup.find(