From 53b797fb53fdc2c540e03d2ad4273688c30173a3 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 1 Apr 2020 19:58:31 +0100 Subject: [PATCH] Validation of mugshot or blrub file added --- parsers/people.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/parsers/people.py b/parsers/people.py index 34a5ff3..f7e2f50 100644 --- a/parsers/people.py +++ b/parsers/people.py @@ -38,7 +38,13 @@ def parseMugShotAndBlurb(personline, header, person): elif mugShotPath[-3:]=='htm': #if person has an html page, find the image(s) and add it. Also, add the text from the html page to the "blurb" field in his model instance. personPageOld=open(mugShotPath,'r').read() if not person.blurb: - person.blurb=re.search('.*.*.*