mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-25 20:32:11 +03:00
1593c3342c
* 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
12 lines
314 B
Python
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
|