Fix your laziness in breaking the CPR parser. Still don't like how KMLgen is done, needs to be consolidated so all db work is in one file.

This commit is contained in:
Nick Foster
2012-02-25 16:50:15 -08:00
parent 622249ba5b
commit c16886c4c1
3 changed files with 17 additions and 14 deletions

View File

@@ -38,12 +38,15 @@ class modes_kml(threading.Thread):
def run(self):
while self.done is False:
self.output()
self.write()
time.sleep(self._timeout)
self.done = True
def output(self):
def output(self, string):
self._sqlobj.insert(string)
def write(self):
self._db = sqlite3.connect(self._dbname)
kmlstr = self.genkml()
if kmlstr is not None: