0
0
Fork 0

app/main.py: the secnd line and after (if any) should also show.

Lanhui-go-bootstrap
Hui Lan 2021-08-01 22:10:23 +08:00
parent d08d8a8594
commit b6209bdde6
1 changed files with 3 additions and 2 deletions

View File

@ -86,8 +86,9 @@ def get_article_title(s):
def get_article_body(s):
return '\n'.join(s.split('\n')[1:-1]) # remove the first line
lst = s.split('\n')
lst.pop(0) # remove the first line
return '\n'.join(lst)
def get_today_article(user_word_list, articleID):