mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-12 12:47:42 +02:00
[eric] apps: leading-_ -> p_ for import aliases (import x as _y) across apps modules (file-local bindings, p-private 0)
This commit is contained in:
@@ -525,8 +525,8 @@ async def m365_device_login(tool_id: str):
|
||||
login_state["status"] = "connected"
|
||||
# Try to extract email from output
|
||||
try:
|
||||
import json as _j
|
||||
result = _j.loads(login_state["output"].strip().split("\n")[-1])
|
||||
import json as p_j
|
||||
result = p_j.loads(login_state["output"].strip().split("\n")[-1])
|
||||
if result.get("success"):
|
||||
ud = result.get("userData", {})
|
||||
login_state["email"] = ud.get("userPrincipalName") or ud.get("displayName")
|
||||
|
||||
Reference in New Issue
Block a user