forked from MarseyWorld/MarseyWorld
Revert "effortpost backwards compatability with old threads like https://rdrama.net/post/57695/the-story-of-michael-j-burry"
This reverts commit bdfe1f135e
.
master
parent
4868b9dccb
commit
0c427dca80
|
@ -453,7 +453,7 @@ class Post(Base):
|
|||
return False
|
||||
|
||||
soup = BeautifulSoup(self.body_html, 'lxml')
|
||||
tags = soup.html.body.find_all(lambda tag: tag.name in {'p','ul','table','d'} and tag.text, recursive=False)
|
||||
tags = soup.html.body.find_all(lambda tag: tag.name in {'p','ul','table'} and tag.text, recursive=False)
|
||||
post_char_count = 0
|
||||
for tag in tags:
|
||||
post_char_count += len(tag.text)
|
||||
|
|
Loading…
Reference in New Issue