21 lines
456 B
Python
21 lines
456 B
Python
import logging
|
|
|
|
|
|
async def filter(completeMessage, todo):
|
|
m = completeMessage
|
|
todo.append(
|
|
{
|
|
"action": "map",
|
|
"data": {
|
|
"onodeID": m["data"]["onodeID"],
|
|
"mnodeID": m["data"]["mnodeID"],
|
|
},
|
|
}
|
|
)
|
|
todo.append(
|
|
{
|
|
"action": "initNodeDH",
|
|
"data": {"mnodeID": m["data"]["mnodeID"], "onodeID": m["data"]["onodeID"]},
|
|
}
|
|
)
|