coe pair filter
This commit is contained in:
@@ -65,6 +65,7 @@ def _init_db():
|
||||
"ul_rssi_dbm REAL",
|
||||
"tput_results TEXT",
|
||||
"throttled TEXT",
|
||||
"coe_pair TEXT",
|
||||
]:
|
||||
try:
|
||||
_conn.execute(f"ALTER TABLE tests ADD COLUMN {col_def}")
|
||||
@@ -138,6 +139,19 @@ def mark_completed(test_id, device, completed_at, duration_seconds, tput_results
|
||||
)
|
||||
|
||||
|
||||
def set_coe_pair(test_row_id, coe_pair):
|
||||
json_value = json.dumps(coe_pair or [])
|
||||
with _tx():
|
||||
_conn.execute(
|
||||
"""
|
||||
UPDATE tests
|
||||
SET coe_pair = ?
|
||||
WHERE id = ?
|
||||
""",
|
||||
(json_value, test_row_id),
|
||||
)
|
||||
|
||||
|
||||
def get_station_for_test(test_id, device):
|
||||
with _lock:
|
||||
row = _conn.execute(
|
||||
|
||||
Reference in New Issue
Block a user