MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / get_user

Method get_user

web/setup.py:619–627  ·  view source on GitHub ↗
(username=None, auth_source=INTERNAL)

Source from the content-addressed store, hash-verified

617class ManagePreferences:
618
619 def get_user(username=None, auth_source=INTERNAL):
620 app = create_app(config.APP_NAME + '-cli')
621 usr = None
622 with app.test_request_context():
623 usr = User.query.filter_by(username=username,
624 auth_source=auth_source).first()
625 if not usr:
626 return None
627 return usr.id
628
629 @app.command()
630 @update_sqlite_path

Callers

nothing calls this directly

Calls 2

create_appFunction · 0.90
firstMethod · 0.65

Tested by

no test coverage detected