Update webapp.py

This commit is contained in:
Joseph Cheung 2023-02-21 14:58:37 +08:00
parent a20ac12dd6
commit 935fcf1c60

View file

@ -754,7 +754,7 @@ def search():
if 'content' not in res: continue if 'content' not in res: continue
if 'title' not in res: continue if 'title' not in res: continue
if res['content'] == '': continue if res['content'] == '': continue
new_url = 'https://url'+str(len(url_pair)+1) new_url = 'https://url'+str(len(url_pair))
url_pair.append(res['url']) url_pair.append(res['url'])
res['title'] = res['title'].replace("التغريدات مع الردود بواسطة","") res['title'] = res['title'].replace("التغريدات مع الردود بواسطة","")
res['content'] = res['content'].replace("Translate Tweet. ","") res['content'] = res['content'].replace("Translate Tweet. ","")