Skip to content

Commit 503a768

Browse files
committed
Merge branch 'main' into classification_test
2 parents d6eeb26 + e91f4cf commit 503a768

File tree

10 files changed

+12
-10
lines changed

10 files changed

+12
-10
lines changed

backend/app/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from fastapi import APIRouter, Depends
2-
from supabase import AsyncClient
2+
from supabase._async.client import AsyncClient
33

44
from app.core.supabase import get_async_supabase
55
from app.routes.classification_routes import router as classification_router

backend/app/core/dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from fastapi import Depends, HTTPException, Request
2-
from supabase import AsyncClient
2+
from supabase._async.client import AsyncClient
33

44
from app.core.supabase import get_async_supabase
55

backend/app/core/seed_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from supabase import AsyncClient
1+
from supabase._async.client import AsyncClient
22

33

44
def print_credentials():

backend/app/core/supabase.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22

3-
from supabase import AsyncClient, acreate_client
3+
from supabase._async.client import AsyncClient
4+
from supabase._async.client import create_client as acreate_client
45

56
supabase: AsyncClient | None = None
67

backend/app/core/webhooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
from supabase import AsyncClient
3+
from supabase._async.client import AsyncClient
44

55

66
async def configure_webhooks(supabase: AsyncClient):

backend/app/services/classification_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from uuid import UUID
33

44
from fastapi import Depends
5-
from supabase import AsyncClient
5+
from supabase._async.client import AsyncClient
66

77
from app.core.supabase import get_async_supabase
88
from app.schemas.classification_schemas import Classification, ExtractedFile

backend/app/services/preprocess_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from uuid import UUID
22

33
from fastapi import Depends
4-
from supabase import AsyncClient
4+
from supabase._async.client import AsyncClient
55

66
from app.core.supabase import get_async_supabase
77
from app.utils.preprocess.embeddings import generate_embedding

backend/app/utils/preprocess/preprocessing_queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22
from uuid import UUID
33

4-
from supabase import AsyncClient
4+
from supabase._async.client import AsyncClient
55

66
from app.services.preprocess_service import PreprocessService
77

backend/app/utils/supabase_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import asyncio
22

3-
from supabase import AsyncClient
3+
from supabase._async.client import AsyncClient
44

55

66
async def wait_for_supabase(supabase: AsyncClient):

backend/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ fastapi==0.119.0
33
uvicorn[standard]==0.37.0
44

55
# Supabase Client
6-
supabase==2.22.0
6+
supabase>=2.7.0
7+
gotrue>=2.5.0
78

89
# Configuration
910
python-dotenv==1.0.1

0 commit comments

Comments
 (0)