viewstable

This commit is contained in:
2022-11-18 20:54:37 +03:00
parent 8975e003a9
commit c839f63036
3 changed files with 107 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ def migrate(entry):
entry["profile"].get("path").lower().replace(" ", "-").strip()
)
bio = BeautifulSoup(entry.get("profile").get("bio") or "", features="lxml").text
if bio.startswith('<'):
bio = BeautifulSoup(bio, features="lxml").text
bio = bio.replace('\(', '(').replace('\)', ')')
# userpic