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/QMs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parsers/QMs.py') diff --git a/parsers/QMs.py b/parsers/QMs.py index a95a3cd..7449a8a 100644 --- a/parsers/QMs.py +++ b/parsers/QMs.py @@ -7,7 +7,7 @@ from django.conf import settings from troggle.core.models import DataIssue from troggle.core.models_caves import QM, Cave, LogbookEntry -from utils import save_carefully +from troggle.core.utils import save_carefully def deleteQMs(): @@ -110,7 +110,7 @@ def parse_KH_QMs(kh, inputFile): khQMs=open(os.path.join(settings.EXPOWEB, inputFile),'r') khQMs=khQMs.readlines() for line in khQMs: - res=re.search('name=\"[CB](?P\d*)-(?P\d*)-(?P\d*).* (?P[ABDCV])
(?P.*)\[(?P.*)\]',line) + res=re.search(r'name=\"[CB](?P\d*)-(?P\d*)-(?P\d*).* (?P[ABDCV])
(?P.*)\[(?P.*)\]',line) if res: res=res.groupdict() year=int(res['year']) -- cgit v1.2.3