diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-04-26 18:42:10 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-04-26 18:42:10 +0100 |
commit | d43ce1bdb278c021d18e9a5af26f68dc2711c7f1 (patch) | |
tree | 6da5c238304ee8d14103f9debe30f7d39eafe57d /parsers/surveys.py | |
parent | bd647b99ec7bd4ae9d3b8b7a6f5b0c274f90bb2e (diff) | |
download | troggle-d43ce1bdb278c021d18e9a5af26f68dc2711c7f1.tar.gz troggle-d43ce1bdb278c021d18e9a5af26f68dc2711c7f1.tar.bz2 troggle-d43ce1bdb278c021d18e9a5af26f68dc2711c7f1.zip |
rename TUNNEL_DATA as DRAWINGS_DATA
Diffstat (limited to 'parsers/surveys.py')
-rw-r--r-- | parsers/surveys.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parsers/surveys.py b/parsers/surveys.py index a0cf520..2e75561 100644 --- a/parsers/surveys.py +++ b/parsers/surveys.py @@ -179,7 +179,7 @@ def settherionfileinfo(filetuple): ''' thtype, therionfile = filetuple - ff = os.path.join(settings.TUNNEL_DATA, therionfile.dwgpath) + ff = os.path.join(settings.DRAWINGS_DATA, therionfile.dwgpath) therionfile.filesize = os.stat(ff)[stat.ST_SIZE] if therionfile.filesize <= 0: message = "! Zero length therion file {}".format(ff) @@ -229,7 +229,7 @@ def setdwgfileinfo(dwgfile): Should try to read the date too e.g. tunneldate="2010-08-16 22:51:57 then we could display on the master calendar per expo. ''' - ff = os.path.join(settings.TUNNEL_DATA, dwgfile.dwgpath) + ff = os.path.join(settings.DRAWINGS_DATA, dwgfile.dwgpath) dwgfile.filesize = os.stat(ff)[stat.ST_SIZE] if dwgfile.filesize <= 0: message = "! Zero length xml file {}".format(ff) @@ -260,7 +260,7 @@ def load_drawings_files(): '''Breadth first search of drawings directory looking for sub-directories and *.xml filesize ''' all_xml = [] - drawdatadir = settings.TUNNEL_DATA + drawdatadir = settings.DRAWINGS_DATA DrawingFile.objects.all().delete() DataIssue.objects.filter(parser='Drawings').delete() DataIssue.objects.filter(parser='Therion').delete() |