Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/realpython/discover-flask
/ load_user
Function
load_user
project/__init__.py:36–37 ·
view source on GitHub ↗
(user_id)
Source
from the content-addressed store, hash-verified
34
35
@login_manager.user_loader
36
def
load_user(user_id):
37
return
User.query.filter(User.id == int(user_id)).first()
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected