Workaround for stupid bug

This commit is contained in:
Luke Rogers 2012-03-28 09:18:25 +13:00
parent 8d6a2d71d4
commit d65f155740

View file

@ -18,7 +18,7 @@ def refresh_cache():
for e in soup.findAll('div', {'class': 'post article'}):
id = int(e['id'])
text = e.find('p', text=True)
text = ''.join(e.find('p').findAll(text=True))
fml_cache[id] = text
# do an initial refresh of the cache