2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-13 20:47:08 +00:00

[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
This commit is contained in:
substantialnoninfringinguser
2009-05-13 05:59:40 +01:00
parent 90da85e856
commit a4edfca30e
9 changed files with 163 additions and 10 deletions

View File

@@ -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',