From 63466822a9263c209ad0232a2c8a021ae0821c6e Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 12 Dec 2020 16:31:03 +0100 Subject: [PATCH] Include magic words in printing --- etherpump/commands/pull.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/etherpump/commands/pull.py b/etherpump/commands/pull.py index 3f98fc5..472b5c7 100644 --- a/etherpump/commands/pull.py +++ b/etherpump/commands/pull.py @@ -527,7 +527,13 @@ async def handle_pad(args, padid, data, info, session): async with await trio.open_file(metapath, "w") as f: await f.write(json.dumps(meta)) - print("[x] {} (saved)".format(padid)) + mwords_msg = ( + ", magic words: {}".format(", ".join(magic_words)) + if magic_words + else "" + ) + + print("[x] {} (saved{})".format(padid, mwords_msg)) saved += 1 return