quivr/backend/repository/brain/get_public_brains.py
Mamadou DICKO 8172704b61
feat: add public brain page (#1230)
* feat: add brain library button

* feat(Field): add inputClassName key

* feat: add GET brains/public route

* feat: add brains library layout

* feat: add brain subscriber count
2023-09-21 09:35:53 +02:00

8 lines
206 B
Python

from models import get_supabase_db
from models.brain_entity import PublicBrain
def get_public_brains() -> list[PublicBrain]:
supabase_db = get_supabase_db()
return supabase_db.get_public_brains()