KML at least works some. Need to pass DB filename into KML constructor.

This commit is contained in:
Nick Foster
2010-10-19 10:05:33 -07:00
parent 76f884e81f
commit 0edcc29380
4 changed files with 8 additions and 10 deletions

View File

@@ -19,7 +19,6 @@
# Boston, MA 02110-1301, USA.
#
#!/usr/bin/env python
import time, os, sys
from string import split, join
import modes_parse
@@ -28,7 +27,7 @@ import sqlite3
class modes_output_sql(modes_parse.modes_parse):
def __init__(self):
#create the database
self.db = sqlite3.connect(':memory:') #RAM-based database, no persistence
self.db = sqlite3.connect('wat.db') #RAM-based database, no persistence
#now execute a schema to create the tables you need
c = self.db.cursor()
query = """CREATE TABLE "positions" (