2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-01-31 07:22:32 +00:00

[svn] minor logfile mistake

This commit is contained in:
substantialnoninfringinguser 2009-05-21 22:55:08 +01:00
parent e336e9c770
commit 83634fe95a
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ from django.db import connection
from django.contrib.auth.models import User
from django.http import HttpResponse
logfile=settings.LOGFILE
def reload_db():
cursor = connection.cursor()
@ -37,7 +37,7 @@ def import_people():
parsers.people.LoadPersonsExpos()
def import_logbooks():
logfile.write('\nBegun importing logbooks at ' + time.asctime() +'\n'+'-'*60)
settings.LOGFILE.write('\nBegun importing logbooks at ' + time.asctime() +'\n'+'-'*60)
import parsers.logbooks
parsers.logbooks.LoadLogbooks()

View File

@ -136,7 +136,7 @@ def html_to_wiki(text):
text2 = ""
return out
def LoadCaveTab(logfile=None):
def LoadCaveTab(logfile=settings.LOGFILE):
cavetab = open(os.path.join(settings.EXPOWEB, "noinfo", "CAVETAB2.CSV"),'rU')
caveReader = csv.reader(cavetab)
caveReader.next() # Strip out column headers