Snapshot. Get closer to new stations table.

This commit is contained in:
W1CDN
2023-06-24 21:30:05 -05:00
parent 1362558deb
commit 8972c8d447
3 changed files with 12 additions and 3 deletions

View File

@ -76,7 +76,7 @@ def unique_stations(conn):
:return:
"""
cur = conn.cursor()
cur.execute('SELECT *, MAX(id) FROM frames GROUP BY "from" ORDER BY MAX(id) DESC')
cur.execute('SELECT *, MAX(id), COUNT(id) FROM frames GROUP BY "from" ORDER BY MAX(id) DESC')
rows = cur.fetchall()
return rows