master
Aevann 2024-05-01 10:50:14 +03:00
parent 19164aff6c
commit ec070c74d7
1 changed files with 1 additions and 1 deletions

View File

@ -2056,7 +2056,7 @@ def mark_effortpost(pid, v):
abort(403, "Post is too short!")
soup = BeautifulSoup(p.body_html, 'lxml')
tags = soup.html.body.find_all(lambda tag: tag.name == 'p' and tag.text, recursive=False)
tags = soup.html.body.find_all(lambda tag: tag.name in {'p','ul'} and tag.text, recursive=False)
post_char_count = 0
for tag in tags:
post_char_count += len(tag.text)