From 2a1710596a48ce0dbd2b4aa5f510f0c79bd57b99 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 13 Apr 2021 00:11:08 +0100 Subject: moving save_carefully() --- parsers/people.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'parsers/people.py') diff --git a/parsers/people.py b/parsers/people.py index bd67e8a..ecc9272 100644 --- a/parsers/people.py +++ b/parsers/people.py @@ -1,11 +1,13 @@ -from django.conf import settings -import troggle.core.models as models import csv, re, datetime, os, shutil -from utils import save_carefully from html.parser import HTMLParser from unidecode import unidecode -'''These functions do not match how the stand-alone script works. So the script produces an HTML file which has +from django.conf import settings + +import troggle.core.models as models +from troggle.core.utils import save_carefully + +'''These functions do not match how the stand-alone folk script works. So the script produces an HTML file which has href links to pages in troggle which troggle does not think are right. The standalone script needs to be renedred defucnt, and all the parsing needs to be in troggle. Either that, or they should use the same code by importing a module. -- cgit v1.2.3