From d374779c473a65fca4740d83942bae24c10f683d Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 5 May 2021 00:35:10 +0100 Subject: dwg upload and django admin extra search --- parsers/drawings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parsers/drawings.py') 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): # 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 -- cgit v1.2.3