summaryrefslogtreecommitdiffstats
path: root/parsers/drawings.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-05-05 00:35:10 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-05-05 00:35:10 +0100
commitd374779c473a65fca4740d83942bae24c10f683d (patch)
tree76805079a17b1570a87c996665b9748c3c9fd1f8 /parsers/drawings.py
parent44b6770b6a562bb8a7d453ddfd1b0b547013a958 (diff)
downloadtroggle-d374779c473a65fca4740d83942bae24c10f683d.tar.gz
troggle-d374779c473a65fca4740d83942bae24c10f683d.tar.bz2
troggle-d374779c473a65fca4740d83942bae24c10f683d.zip
dwg upload and django admin extra search
Diffstat (limited to 'parsers/drawings.py')
-rw-r--r--parsers/drawings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsers/drawings.py b/parsers/drawings.py
index f3aca47..8c45aae 100644
--- a/parsers/drawings.py
+++ b/parsers/drawings.py
@@ -34,7 +34,7 @@ def get_or_create_placeholder(year):
placeholder_logbook_entry, newly_created = save_carefully(LogbookEntry, lookupAttribs, nonLookupAttribs)
return placeholder_logbook_entry
-def find_tunnel_file(dwgfile, path):
+def find_dwg_file(dwgfile, path):
'''Is given a line of text 'path' which may or may not contain a recognisable name of a scanned file
which we have already seen when we imported all the files we could find in the surveyscans direstories
'''
@@ -164,7 +164,7 @@ def setdwgfileinfo(dwgfile):
# <pcarea area_signal="frame" sfscaledown="12.282584" sfrotatedeg="-90.76982" sfxtrans="11.676667377221136" sfytrans="-15.677173422877454" sfsketch="204description/scans/plan(38).png" sfstyle="" nodeconnzsetrelative="0.0">
for path, style in rx_pcpath.findall(ttext):
- find_tunnel_file(dwgfile, path.decode())
+ find_dwg_file(dwgfile, path.decode())
# should also scan and look for survex blocks that might have been included, and image scans
# which would populate dwgfile.survexfile