UI changes

This commit is contained in:
2026-05-27 10:29:26 -04:00
parent 1ba2aa39d8
commit d560b2e0b4
14 changed files with 237 additions and 28 deletions
+5 -3
View File
@@ -64,6 +64,7 @@ def _init_db():
"dl_rssi_dbm REAL",
"ul_rssi_dbm REAL",
"tput_results TEXT",
"throttled TEXT",
]:
try:
_conn.execute(f"ALTER TABLE tests ADD COLUMN {col_def}")
@@ -96,10 +97,10 @@ def upsert_test(test):
"""
INSERT INTO tests
(id, test_id, parent_dir, filename, interference, device, rotation,
test_point, station, band, channel, bandwidth, rssi, direction)
test_point, station, band, channel, bandwidth, rssi, direction, throttled)
VALUES
(:id, :test_id, :parent_dir, :filename, :interference, :device, :rotation,
:test_point, :station, :band, :channel, :bandwidth, :rssi, :direction)
:test_point, :station, :band, :channel, :bandwidth, :rssi, :direction, :throttled)
ON CONFLICT(id) DO UPDATE SET
test_id = excluded.test_id,
parent_dir = excluded.parent_dir,
@@ -113,7 +114,8 @@ def upsert_test(test):
channel = excluded.channel,
bandwidth = excluded.bandwidth,
rssi = excluded.rssi,
direction = excluded.direction
direction = excluded.direction,
throttled = excluded.throttled
""",
test,
)