Skip to content

Commit

Permalink
cleaned code; updated logic
Browse files Browse the repository at this point in the history
  • Loading branch information
colts661 committed Jan 29, 2024
1 parent 2649911 commit 62649a9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions microsetta_interface/implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2784,11 +2784,12 @@ def get_interactive_account_search(email_query):

accounts = []
for acct in email_diagnostics['accounts']:
authrocket_status = (
"Missing"
if acct['auth_issuer'] is None and acct['auth_sub'] is None
else "Authenticated"
)
if acct['auth_issuer'] is None and acct['auth_sub'] is None:
authrocket_status = "Missing"
elif acct['auth_issuer'] is None or acct['auth_sub'] is None:
authrocket_status = "Faulty - Contact Admin"
else:
authrocket_status = "Authenticated"
acct_diag = {
"email": acct['email'],
"account_id": acct['id'],
Expand Down

0 comments on commit 62649a9

Please sign in to comment.