MCPcopy Index your code
hub / github.com/dataease/SQLBot / ws_options

Function ws_options

backend/apps/system/api/user.py:134–135  ·  view source on GitHub ↗
(session: SessionDep, current_user: CurrentUser, trans: Trans)

Source from the content-addressed store, hash-verified

132
133@router.get("/ws", include_in_schema=False)
134async def ws_options(session: SessionDep, current_user: CurrentUser, trans: Trans) -> list[UserWs]:
135 return await user_ws_options(session, current_user.id, trans)
136
137@router.put("/ws/{oid}", summary=f"{PLACEHOLDER_PREFIX}switch_oid_api", description=f"{PLACEHOLDER_PREFIX}switch_oid_api")
138@clear_cache(namespace=CacheNamespace.AUTH_INFO, cacheName=CacheName.USER_INFO, keyExpression="current_user.id")

Callers

nothing calls this directly

Calls 1

user_ws_optionsFunction · 0.90

Tested by

no test coverage detected