forked from expo/troggle
[svn] fix minor logfile error
This commit is contained in:
parent
3d8a6fb55a
commit
3ac1169aa7
@ -8,6 +8,8 @@ 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()
|
||||
cursor.execute("drop database %s" % settings.DATABASE_NAME)
|
||||
@ -35,7 +37,7 @@ def import_people():
|
||||
parsers.people.LoadPersonsExpos()
|
||||
|
||||
def import_logbooks():
|
||||
settings.LOGFILE.write('\nBegun importing logbooks at ' + time.asctime() +'\n'+'-'*60)
|
||||
logfile.write('\nBegun importing logbooks at ' + time.asctime() +'\n'+'-'*60)
|
||||
import parsers.logbooks
|
||||
parsers.logbooks.LoadLogbooks()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user