migration-bio-fix
This commit is contained in:
@@ -524,6 +524,7 @@
|
||||
"pandemiya": "pandemic",
|
||||
"parizh": "paris",
|
||||
"patriotizm": "patriotism",
|
||||
"patsifizm": "pacifism",
|
||||
"paul-tselan": "paul-tselan",
|
||||
"per-burd": "pierre-bourdieu",
|
||||
"perezhivaniya": "worries",
|
||||
|
@@ -34,7 +34,7 @@ def migrate(entry):
|
||||
user_dict["slug"] = (
|
||||
entry["profile"].get("path").lower().replace(" ", "-").strip()
|
||||
)
|
||||
bio = BeautifulSoup(entry.get("profile").get("bio") or "").text
|
||||
bio = BeautifulSoup(entry.get("profile").get("bio") or "", features="lxml").text
|
||||
bio = bio.replace('\(', '(').replace('\)', ')')
|
||||
|
||||
# userpic
|
||||
|
Reference in New Issue
Block a user