summaryrefslogtreecommitdiffstats
path: root/parsers/QMs.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-04-13 00:11:08 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-04-13 00:11:08 +0100
commit2a1710596a48ce0dbd2b4aa5f510f0c79bd57b99 (patch)
tree9c93df7272f53ce66e3ff6b0340b972dcb75ec5f /parsers/QMs.py
parentb602f3ae13ef8c620c19ea3e56257f0693e0a1b0 (diff)
downloadtroggle-2a1710596a48ce0dbd2b4aa5f510f0c79bd57b99.tar.gz
troggle-2a1710596a48ce0dbd2b4aa5f510f0c79bd57b99.tar.bz2
troggle-2a1710596a48ce0dbd2b4aa5f510f0c79bd57b99.zip
moving save_carefully()
Diffstat (limited to 'parsers/QMs.py')
-rw-r--r--parsers/QMs.py4
1 files changed, 2 insertions, 2 deletions
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<year>\d*)-(?P<cave>\d*)-(?P<number>\d*).*</a> (?P<grade>[ABDCV])<dd>(?P<description>.*)\[(?P<nearest_station>.*)\]',line)
+ res=re.search(r'name=\"[CB](?P<year>\d*)-(?P<cave>\d*)-(?P<number>\d*).*</a> (?P<grade>[ABDCV])<dd>(?P<description>.*)\[(?P<nearest_station>.*)\]',line)
if res:
res=res.groupdict()
year=int(res['year'])