Commit 3c433d22 authored by Moul's avatar Moul
Browse files

[fix] #141: wot: fix broken revoked_on

- add missing convert_time()’s argument
- seperate the revocation block from the membership block
parent c914db65
......@@ -92,17 +92,15 @@ def membership_status(certifications, certs, pubkey, req):
)
member = is_member(pubkey, certs["uid"])
print("member:", member)
if not member and req["wasMember"]:
if req["revoked"]:
print(
"revoked:",
req["revoked"],
"\nrevoked on:",
convert_time(req["revoked_on"]),
"\nexpired:",
req["expired"],
"\nwasMember:",
req["wasMember"],
convert_time(req["revoked_on"], "date") + "\n",
)
if not member and req["wasMember"]:
print("expired:", req["expired"], "\nwasMember:", req["wasMember"])
elif member:
print(
"Membership document expiration: "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment