lenticular_cloud2/import.py

14 lines
349 B
Python
Raw Permalink Normal View History

2020-05-30 21:43:55 +00:00
import logging
from lenticular_cloud.app import init_app
from lenticular_cloud.model import User
2020-05-30 21:43:55 +00:00
name = 'oidc_provider'
app = init_app(name)
2020-05-30 21:43:55 +00:00
logging.basicConfig(level=logging.DEBUG)
with app.app_context():
for ldap_user in User.query_().all():
user = User.query.filter_by(username=str(ldap_user.username)).first()
print(user)
2020-05-30 21:43:55 +00:00