Make cheat system async

This commit is contained in:
2022-05-05 09:18:35 +01:00
parent 2bf05eafa7
commit 1c84277af1
10 changed files with 97 additions and 95 deletions

View File

@@ -25,7 +25,6 @@ class Verify(util.Base):
"""
Update the authentication status of a external user ID.
"""
print("Updating verification status", external_user_id, review_status)
if review_status == "completed" and review_answer == "GREEN":
self.verification_successful(external_user_id)
@@ -38,7 +37,6 @@ class Verify(util.Base):
return signature == payload_digest
def process_callback(self, content_json):
print("CONTENT JSON", content_json)
if "externalUserId" in content_json:
external_user_id = content_json["externalUserId"]
else:
@@ -85,7 +83,6 @@ class Verify(util.Base):
last_name = info["info"]["lastName"]
if first_name.startswith("MR "):
first_name = first_name[3:]
print("info", info)
return (first_name, last_name)
def create_applicant_and_get_link(self, external_user_id):