Spaces:
Paused
Paused
Download scratch/verify_changes.py from 3SCError404/nexus: direct link, hf CLI and curl.
- Browser
- Download file 791 Bytes
-
https://huggingface.co/spaces/3SCError404/nexus/resolve/main/scratch/verify_changes.py
- Command line
-
hf download hf://spaces/3SCError404/nexus/scratch/verify_changes.py
-
curl -L -o verify_changes.py https://huggingface.co/spaces/3SCError404/nexus/resolve/main/scratch/verify_changes.py
791 Bytes
| import asyncio | |
| import uuid | |
| from core.database import async_session_factory | |
| from agents.utils import get_available_agents | |
| async def verify(): | |
| ansell_ws_id = uuid.UUID("00078389-5ae6-449f-baf4-72a17ed03fa7") | |
| admin_a_id = uuid.UUID("313ec2c5-03ed-424d-bca0-df461624d986") | |
| async with async_session_factory() as db: | |
| agents = await get_available_agents(db, ansell_ws_id) | |
| agent_ids = [a.id for a in agents] | |
| agent_names = [a.full_name for a in agents] | |
| print(f"Agents in Ansell Workspace: {agent_names}") | |
| if admin_a_id in agent_ids: | |
| print("FAIL: Admin A is still in the pool!") | |
| else: | |
| print("SUCCESS: Admin A is excluded from the pool.") | |
| if __name__ == "__main__": | |
| asyncio.run(verify()) | |