Spaces:
Sleeping
Sleeping
File size: 540 Bytes
e86dfae | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import os
import sys
# Add the app directory to the path so we can import modules
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from app.db.session import get_db_context
from app.models.user import User
def main():
try:
with get_db_context() as db:
users = db.query(User).all()
print(f"Found {len(users)} users:")
for u in users:
print(f"- ID: {u.clerk_user_id}")
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
main()
|