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

[svn] parsing of 2007 logbook. still problems

Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8039 by julian @ 10/27/2008 2:03 AM
This commit is contained in:
substantialnoninfringinguser
2009-05-13 05:14:41 +01:00
parent 18f6731b5b
commit 0e8c7af706
2 changed files with 26 additions and 11 deletions

View File

@@ -4,7 +4,11 @@ import settings
import expo.models as models
import csv
import time
<<<<<<< .mine
#import sqlite3
=======
# import sqlite3
>>>>>>> .r8038
import re
import os
@@ -61,8 +65,13 @@ caveReader = csv.reader(cavetab)
caveReader.next() # Strip out column headers
<<<<<<< .mine
def save(x): #There seems to be an intermitent problem with sqlite and Vista, uncomment the lines below and the "import sqlite3" above to fix it
# try:
=======
def save(x): #There seems to be an intermitent problem with sqlite and Vista, uncomment the lines below, and the import sqlite3 statment above to fix it
# try:
>>>>>>> .r8038
x.save()
# except sqlite3.OperationalError:
# print "Error"
@@ -269,4 +278,4 @@ for line in caveReader :
entrance_letter = ''
newCaveAndEntrance = models.CaveAndEntrance(cave = newCave, entrance = newEntrance, entrance_letter = entrance_letter)
save(newCaveAndEntrance)
save(newCaveAndEntrance)