Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions test_helper/test_sphinx_book/test_book_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ def get_html(self, html_file):
Soup = bs4.BeautifulSoup(File, features="html.parser")
title = Soup.title.text.split('—')[0]
content = Soup.select('.body')[0]
conz = ''
for a in content:
conz += str(a) + '\n'
conz = '' + '\n'.join([str(a) for a in content])

return {'title': title, 'cnt': conz}

Expand Down
3 changes: 1 addition & 2 deletions torcms_taginfo/run_export_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ def export_data():
for rec in recs:
label = ''
rec_label = MPost2Label.get_by_uid(rec.uid).objects()
for r_label in rec_label:
label += r_label.tag_name + ','
label += ','.join([r_label.tag_name for r_label in rec_label])

infos = MPost.query_by_extinfo(key='cpbh', val=rec.extinfo['cpbh'])
for info in infos:
Expand Down