Workaround for stupid bug
This commit is contained in:
parent
8d6a2d71d4
commit
d65f155740
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def refresh_cache():
|
||||||
|
|
||||||
for e in soup.findAll('div', {'class': 'post article'}):
|
for e in soup.findAll('div', {'class': 'post article'}):
|
||||||
id = int(e['id'])
|
id = int(e['id'])
|
||||||
text = e.find('p', text=True)
|
text = ''.join(e.find('p').findAll(text=True))
|
||||||
fml_cache[id] = text
|
fml_cache[id] = text
|
||||||
|
|
||||||
# do an initial refresh of the cache
|
# do an initial refresh of the cache
|
||||||
|
|
Reference in a new issue