Move the SQL stuff out of uhd_modes and into modes_kml, keeps things neat

This commit is contained in:
Nick Foster
2012-01-30 18:50:04 -08:00
parent 82ce9feec0
commit 105950c176
2 changed files with 9 additions and 7 deletions
+3 -4
View File
@@ -153,10 +153,9 @@ if __name__ == '__main__':
updates = [] #registry of plugin update functions
if options.kml is not None:
sqlport = air_modes.modes_output_sql(my_position, 'adsb.db') #create a SQL parser to push stuff into SQLite
outputs.append(sqlport.insert)
#also we spawn a thread to run every 30 seconds (or whatever) to generate KML
kmlgen = air_modes.modes_kml('adsb.db', options.kml, my_position) #create a KML generating thread which reads the database
#we spawn a thread to run every 30 seconds (or whatever) to generate KML
kmlgen = air_modes.modes_kml(options.kml, my_position) #create a KML generating thread
outputs.append(kmlgen.output)
if options.sbs1 is True:
sbs1port = air_modes.modes_output_sbs1(my_position)