dont use markdown for old content
This commit is contained in:
parent
2fccc3a9d1
commit
cefc6dfb5d
|
@ -109,7 +109,7 @@ def migrate(entry, users_by_oid, topics_by_oid):
|
||||||
else:
|
else:
|
||||||
body_html = str(BeautifulSoup(
|
body_html = str(BeautifulSoup(
|
||||||
body_orig, features="html.parser"))
|
body_orig, features="html.parser"))
|
||||||
r['body'] = html2text(body_html)
|
r['body'] = body_html # html2text(body_html)
|
||||||
else:
|
else:
|
||||||
print(r['slug'] + ': literature has no media')
|
print(r['slug'] + ': literature has no media')
|
||||||
elif entry.get('type') == 'Video':
|
elif entry.get('type') == 'Video':
|
||||||
|
@ -130,7 +130,7 @@ def migrate(entry, users_by_oid, topics_by_oid):
|
||||||
if r.get('body') is None:
|
if r.get('body') is None:
|
||||||
body_orig = entry.get('body', '')
|
body_orig = entry.get('body', '')
|
||||||
body_html = str(BeautifulSoup(body_orig, features="html.parser"))
|
body_html = str(BeautifulSoup(body_orig, features="html.parser"))
|
||||||
r['body'] = html2text(body_html)
|
r['body'] = body_html # html2text(body_html)
|
||||||
body = r.get('body', '')
|
body = r.get('body', '')
|
||||||
r['old_id'] = entry.get('_id')
|
r['old_id'] = entry.get('_id')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user