From 17ae34d09ec12d7038becf98ad3736f5de6be8cc Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Tue, 23 Jan 2024 16:36:56 +0000 Subject: [PATCH] fix: Depends usage for task_submissions endpoint --- src/backend/app/submissions/submission_routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/app/submissions/submission_routes.py b/src/backend/app/submissions/submission_routes.py index 31f1225e1e..c7ad5a7f55 100644 --- a/src/backend/app/submissions/submission_routes.py +++ b/src/backend/app/submissions/submission_routes.py @@ -30,7 +30,7 @@ from app.central import central_crud from app.config import settings -from app.db import database +from app.db import database, db_models from app.projects import project_crud, project_deps, project_schemas from app.submissions import submission_crud, submission_schemas from app.tasks import tasks_crud @@ -397,7 +397,7 @@ async def submission_table( @router.get("/task_submissions/{project_id}") async def task_submissions( task_id: int, - project: project_deps.get_project_by_id = Depends(), + project: db_models.DbProject = Depends(project_deps.get_project_by_id), page: int = Query(1, ge=1), limit: int = Query(13, le=100), db: Session = Depends(database.get_db),