Include magic words in printing

This commit is contained in:
Luke Murphy 2020-12-12 16:31:03 +01:00
parent a33eb720b3
commit 63466822a9
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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