summaryrefslogtreecommitdiffstats
path: root/parsers/people.py
diff options
context:
space:
mode:
Diffstat (limited to 'parsers/people.py')
-rw-r--r--parsers/people.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/parsers/people.py b/parsers/people.py
index 96bda41..4a4512c 100644
--- a/parsers/people.py
+++ b/parsers/people.py
@@ -79,7 +79,8 @@ def troggle_slugify(longname):
slug = slug.replace('ä', 'a')
slug = slug.replace('&', '') # otherwise just remove the &
slug = slug.replace(';', '') # otherwise just remove the ;
- slug = re.sub(r'<[^>]*>','',slug) # remove <span-lang = "hu">
+ slug = slug.replace("'", "") # otherwise just remove the ', no O'Reilly problem # NEW
+ slug = re.sub(r'<[^>]*>','',slug) # remove <span-lang = "hu"> and any HTML tags
slug=slug.strip("-") # remove spare hyphens
if len(slug) > 40: # slugfield is 50 chars
@@ -120,9 +121,11 @@ def load_people_expos():
e = Expedition.objects.create(**otherAttribs, **coUniqueAttribs)
print(" - Loading personexpeditions")
-
+
for personline in personreader:
# This is all horrible: refactor it.
+ # CSV: Name,Lastname,Guest,VfHO member,Mugshot,..
+ # e.g: Olly Betts (Ol),Betts,,,l/ollybetts.htm,
name = personline[header["Name"]]
plainname = re.sub(r"<.*?>", "", name) # now in slugify