summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
Diffstat (limited to 'parsers')
-rw-r--r--parsers/QMs.py1
-rw-r--r--parsers/imports.py3
-rw-r--r--parsers/logbooks.py6
-rw-r--r--parsers/survex.py4
-rw-r--r--parsers/surveys.py4
5 files changed, 16 insertions, 2 deletions
diff --git a/parsers/QMs.py b/parsers/QMs.py
index 3a3e2bb..fe796a0 100644
--- a/parsers/QMs.py
+++ b/parsers/QMs.py
@@ -9,6 +9,7 @@ from troggle.core.models.troggle import DataIssue
from troggle.core.models.caves import QM, Cave, LogbookEntry
from troggle.core.utils import save_carefully
+'''Reads the CSV files containg QMs for a select few caves'''
def deleteQMs():
QM.objects.all().delete()
diff --git a/parsers/imports.py b/parsers/imports.py
index 5309065..bfafbfe 100644
--- a/parsers/imports.py
+++ b/parsers/imports.py
@@ -15,6 +15,9 @@ import troggle.parsers.surveys
import troggle.parsers.logbooks
import troggle.parsers.QMs
+'''Master data importUsed only by databaseReset.py currently
+'''
+
def import_caves():
print("-- Importing Caves to ",end="")
print(django.db.connections.databases['default']['NAME'])
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index c24af07..51171d0 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -15,10 +15,12 @@ from troggle.core.utils import TROG, save_carefully
from troggle.core.models.caves import Cave, LogbookEntry, PersonTrip, GetCaveLookup
from parsers.people import GetPersonExpeditionNameLookup
-#
+'''
+Parses and imports logbooks in all their wonderful confusion
+
# When we edit logbook entries, allow a "?" after any piece of data to say we've frigged it and
# it can be checked up later from the hard-copy if necessary; or it's not possible to determin (name, trip place, etc)
-#
+'''
#
# the logbook loading section
diff --git a/parsers/survex.py b/parsers/survex.py
index 9d23cc8..ad6f27f 100644
--- a/parsers/survex.py
+++ b/parsers/survex.py
@@ -20,6 +20,10 @@ from troggle.core.views.caves import MapLocations
from troggle.core.models.troggle import DataIssue, Expedition
from troggle.core.models.survex import SurvexPersonRole, ScansFolder, SurvexDirectory, SurvexFile, SurvexBlock, SurvexStation
+'''Imports the tree of survex files following form a defined root .svx file
+It does also NOT scan the Loser repo for all the svx files - though it should !
+'''
+
survexblockroot = None
ROOTBLOCK = "rootblock"
METRESINFEET = 3.28084
diff --git a/parsers/surveys.py b/parsers/surveys.py
index 66a3299..bba5d3f 100644
--- a/parsers/surveys.py
+++ b/parsers/surveys.py
@@ -15,6 +15,10 @@ from troggle.core.models.survex import SingleScan, ScansFolder, TunnelFile
from troggle.core.models.troggle import DataIssue
from troggle.core.utils import save_carefully
+'''Scans through all the :drawings: repository looking
+for tunnel and therion files
+'''
+
def get_or_create_placeholder(year):
""" All surveys must be related to a logbookentry. We don't have a way to