JSON generation for last 1 minute so it lines up w/ICAO list display.

This commit is contained in:
Nick Foster 2013-07-22 18:15:26 -07:00
parent a09c5add43
commit 48c55fa7f8
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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()