Browse Source

Include magic words in printing

main
decentral1se 1 year ago
parent
commit
63466822a9
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 8
      etherpump/commands/pull.py

8
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

Loading…
Cancel
Save