summaryrefslogtreecommitdiffstats
path: root/parsers/QMs.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:59:40 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:59:40 +0100
commita4edfca30e254aa5135a059870ebd60219874087 (patch)
tree702260858e4fb84e946602b996d80ebd213735ef /parsers/QMs.py
parent90da85e8563298a23e860db08db952f9a6b46f2d (diff)
downloadtroggle-a4edfca30e254aa5135a059870ebd60219874087.tar.gz
troggle-a4edfca30e254aa5135a059870ebd60219874087.tar.bz2
troggle-a4edfca30e254aa5135a059870ebd60219874087.zip
[svn] Got QM pages working.
Started scripts for exporting to old expo format. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8269 by aaron @ 3/12/2009 2:22 PM
Diffstat (limited to 'parsers/QMs.py')
-rw-r--r--parsers/QMs.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/parsers/QMs.py b/parsers/QMs.py
index 7858c0c..bad95a7 100644
--- a/parsers/QMs.py
+++ b/parsers/QMs.py
@@ -48,8 +48,12 @@ def parseCaveQMs(cave,pathToCSV):
newQM.grade=line[1]
newQM.area=line[2]
newQM.location_description=line[3]
- newQM.nearest_station_description=line[4]
- newQM.completion_description=line[5]
+
+ newQM.completion_description=line[4]
+ newQM.nearest_station_description=line[5]
+ if newQM.completion_description: # Troggle checks if QMs are completed by checking if they have a ticked_off_by trip. In the table, completion is indicated by the presence of a completion discription.
+ newQM.ticked_off_by=placeholder
+
newQM.comment=line[6]
newQM.save()
print "QM "+str(newQM) + ' added to database\r',