mirror of
https://github.com/FreifunkFranken/fff-monitoring.git
synced 2024-06-13 11:09:10 +02:00
router.html: Sort neighbors by quality
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
4f4afeb69f
commit
cc61b43316
|
@ -91,7 +91,9 @@ def router_info(dbid):
|
||||||
SELECT router, mac FROM router_netif GROUP BY mac, router
|
SELECT router, mac FROM router_netif GROUP BY mac, router
|
||||||
) AS net ON nb.mac = net.mac
|
) AS net ON nb.mac = net.mac
|
||||||
LEFT JOIN router as r ON net.router = r.id
|
LEFT JOIN router as r ON net.router = r.id
|
||||||
WHERE nb.router = %s""",(dbid,))
|
WHERE nb.router = %s
|
||||||
|
ORDER BY nb.quality DESC
|
||||||
|
""",(dbid,))
|
||||||
# FIX SQL: only one from router_netif
|
# FIX SQL: only one from router_netif
|
||||||
|
|
||||||
router["events"] = mysql.fetchall("""SELECT * FROM router_events WHERE router = %s""",(dbid,))
|
router["events"] = mysql.fetchall("""SELECT * FROM router_events WHERE router = %s""",(dbid,))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user