JSON generation for last 1 minute so it lines up w/ICAO list display.
This commit is contained in:
parent
a09c5add43
commit
48c55fa7f8
@ -131,7 +131,7 @@ class dashboard_data_model(QtCore.QAbstractTableModel):
|
||||
self.lock.release()
|
||||
self.prune()
|
||||
|
||||
#weeds out ICAOs older than 5 minutes
|
||||
#weeds out ICAOs older than 1 minute
|
||||
def prune(self):
|
||||
self.lock.acquire()
|
||||
for (index,row) in enumerate(self._data):
|
||||
|
@ -188,7 +188,7 @@ class output_jsonp(output_kml):
|
||||
# retstr += """\t<Folder>\n\t\t<name>Aircraft locations</name>\n\t\t<open>0</open>"""
|
||||
|
||||
#read the database and add KML
|
||||
q = "select distinct icao from positions where seen > datetime('now', '-5 minute')"
|
||||
q = "select distinct icao from positions where seen > datetime('now', '-1 minute')"
|
||||
c = self._db.cursor()
|
||||
self.locked_execute(c, q)
|
||||
icaolist = c.fetchall()
|
||||
|
Loading…
Reference in New Issue
Block a user