coe pair filter

This commit is contained in:
2026-05-27 11:29:02 -04:00
parent 8da5957024
commit 5996443f38
8 changed files with 221 additions and 7 deletions
+14
View File
@@ -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(