UI changes
This commit is contained in:
+5
-3
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user