quivr/backend/repository/brain/get_user_brains.py
Mamadou DICKO 1593c3342c
feat: display brain status on settings page (#1221)
* feat: update GET/brains return status

* feat: add public tag on brain list

* feat: add public tag for public brain on brain settings tab

* feat: hide over tab when brain access is public
2023-09-20 16:24:56 +02:00

12 lines
314 B
Python

from uuid import UUID
from models import get_supabase_db
from models.brain_entity import MinimalBrainEntity
def get_user_brains(user_id: UUID) -> list[MinimalBrainEntity]:
supabase_db = get_supabase_db()
results = supabase_db.get_user_brains(user_id) # type: ignore
return results # type: ignore