mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-06-11 09:24:44 +02:00
fix: node_id int handling in connector + rule stats data path
- connector.send_message accepts int or string destination - channels.py converts node_id to str before string operations - Rule stats write to /data/ (Docker volume) not /opt/meshai/data/
This commit is contained in:
parent
2f0cf520fa
commit
32f6a238f8
3 changed files with 13 additions and 10 deletions
|
|
@ -229,10 +229,13 @@ class MeshConnector:
|
|||
|
||||
try:
|
||||
if destination:
|
||||
# DM to specific node
|
||||
# Convert hex string to int if needed
|
||||
if destination.startswith("!"):
|
||||
# DM to specific node - handle int or string
|
||||
if isinstance(destination, int):
|
||||
dest_num = destination
|
||||
elif destination.startswith("!"):
|
||||
dest_num = int(destination[1:], 16)
|
||||
elif destination.isdigit():
|
||||
dest_num = int(destination)
|
||||
else:
|
||||
dest_num = int(destination, 16)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue