Skip to content
Snippets Groups Projects
Commit 02d30d74 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 49ee2068
No related branches found
No related tags found
No related merge requests found
......@@ -91,17 +91,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: "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment