MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / get_premium_status

Function get_premium_status

app/api/agentops/api/utils.py:49–59  ·  view source on GitHub ↗
(supabase: AsyncSupabaseClient = None, user_id: str = None)

Source from the content-addressed store, hash-verified

47
48
49async def get_premium_status(supabase: AsyncSupabaseClient = None, user_id: str = None) -> bool:
50 if supabase is None and user_id is not None:
51 supabase = await get_async_supabase()
52
53 try:
54 # return await supabase.get("users", "premium", "id", user_id)
55 # TODO: when we refactor premium management, add logic here
56 return False
57 except Exception as e:
58 logger.warning(f"Could not fetch premium status: {e}")
59 return False
60
61
62async def update_stats(

Callers

nothing calls this directly

Calls 1

get_async_supabaseFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…