mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
follow json setting from message for advert
This commit is contained in:
parent
7cdb3e5578
commit
711f546a71
1 changed files with 1 additions and 2 deletions
|
|
@ -180,7 +180,7 @@ async def handle_advert(event):
|
|||
if not handle_advert.print_adverts:
|
||||
return
|
||||
|
||||
if handle_advert.json_output:
|
||||
if handle_message.json_output:
|
||||
msg = json.dumps({"event": "advert", "public_key" : event.payload["public_key"]})
|
||||
else:
|
||||
key = event.payload["public_key"]
|
||||
|
|
@ -198,7 +198,6 @@ async def handle_advert(event):
|
|||
print(msg)
|
||||
handle_advert.print_adverts=False
|
||||
handle_advert.mc=None
|
||||
handle_advert.json_output=False
|
||||
|
||||
async def handle_path_update(event):
|
||||
if not handle_path_update.print_path_updates:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue