mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-08-08 01:32:54 +02:00
feat(v2): Add pkt_payload to DMs, update watchdog for single container
- Add pkt_payload column to direct_messages table for stable packet hash generation and Analyzer URL linking - Update insert_direct_message() and DeviceManager to store pkt_payload - Add test for DM pkt_payload storage (43 tests pass) - Update watchdog to monitor only mc-webui (meshcore-bridge removed) - USB reset trigger now fires for mc-webui container failures Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -248,14 +248,15 @@ class Database:
|
||||
cursor = conn.execute(
|
||||
"""INSERT INTO direct_messages
|
||||
(contact_pubkey, direction, content, timestamp, sender_timestamp,
|
||||
txt_type, snr, path_len, expected_ack, signature, raw_json)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""",
|
||||
txt_type, snr, path_len, expected_ack, pkt_payload, signature, raw_json)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""",
|
||||
(contact_pubkey, direction, content, timestamp,
|
||||
kwargs.get('sender_timestamp'),
|
||||
kwargs.get('txt_type', 0),
|
||||
kwargs.get('snr'),
|
||||
kwargs.get('path_len'),
|
||||
kwargs.get('expected_ack'),
|
||||
kwargs.get('pkt_payload'),
|
||||
kwargs.get('signature'),
|
||||
kwargs.get('raw_json'))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user