Spaces:
Paused
Paused
Download scratch/check_emails.py from 3SCError404/miracle: direct link, hf CLI and curl.
- Browser
- Download file 459 Bytes
-
https://huggingface.co/spaces/3SCError404/miracle/resolve/main/scratch/check_emails.py
- Command line
-
hf download hf://spaces/3SCError404/miracle/scratch/check_emails.py
-
curl -L -o check_emails.py https://huggingface.co/spaces/3SCError404/miracle/resolve/main/scratch/check_emails.py
459 Bytes
| import asyncio | |
| from core.database import async_session_factory | |
| from sqlalchemy import select | |
| from models.user import User | |
| async def check(): | |
| async with async_session_factory() as db: | |
| res = await db.execute(select(User.email, User.real_email)) | |
| users = res.all() | |
| print("--- USER EMAILS ---") | |
| for u in users: | |
| print(f"Login: {u.email} | Real: {u.real_email}") | |
| if __name__ == "__main__": | |
| asyncio.run(check()) | |