summaryrefslogtreecommitdiffstats
path: root/parsers/cavetab.py
diff options
context:
space:
mode:
authormartin speleo <martin.speleo@gmail.com>2009-07-04 17:08:48 +0100
committermartin speleo <martin.speleo@gmail.com>2009-07-04 17:08:48 +0100
commit09581829d141cb29f1b87473c2266562ae6f7679 (patch)
tree8c2e0a4ade40d0b47de2ab49ed1f14e1e882783b /parsers/cavetab.py
parent3afb94f5d24bf86b432e16a40de08a5e5e20b0f0 (diff)
downloadtroggle-09581829d141cb29f1b87473c2266562ae6f7679.tar.gz
troggle-09581829d141cb29f1b87473c2266562ae6f7679.tar.bz2
troggle-09581829d141cb29f1b87473c2266562ae6f7679.zip
[svn] Changed addToArgsSurveyStation such that it does not pass a surveystation model to html_to_wiki. Which was unecessary as html_to_wiki returned it without modification. By removing it html_to_wiki can be cleaned up.
Diffstat (limited to 'parsers/cavetab.py')
-rw-r--r--parsers/cavetab.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/parsers/cavetab.py b/parsers/cavetab.py
index 20c7658..0fbde43 100644
--- a/parsers/cavetab.py
+++ b/parsers/cavetab.py
@@ -141,7 +141,7 @@ def LoadCaveTab():
if created and line[UnofficialName]:
newUnofficialName = models.OtherCaveName(cave = newCave, name = line[UnofficialName])
newUnofficialName.save()
-
+
logging.info("Added unofficial name "+str(newUnofficialName)+" to cave "+str(newCave)+"\n")
if created and line[MultipleEntrances] == '' or \
@@ -189,7 +189,7 @@ def LoadCaveTab():
if line[CSVname]:
surveyPoint = models.SurveyStation(name = line[CSVname])
surveyPoint.save()
- args[modelName] = html_to_wiki(surveyPoint)
+ args[modelName] = surveyPoint
addToArgsSurveyStation(TagPoint, 'tag_station')
addToArgsSurveyStation(ExactEntrance, 'exact_station')
addToArgsSurveyStation(OtherPoint, 'other_station')
@@ -203,8 +203,8 @@ def LoadCaveTab():
addToArgs(Bearings, 'bearings')
newEntrance = models.Entrance(**args)
newEntrance.save()
-
- logging.info("Added entrance "+str(newEntrance)+"\n")
+
+ logging.info("Added entrance "+str(newEntrance)+"\n")
if line[Entrances]:
entrance_letter = line[Entrances]