Skip to content

Commit

Permalink
fix: Depends usage for task_submissions endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Jan 23, 2024
1 parent 9a9d728 commit 17ae34d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/submissions/submission_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 17ae34d

Please sign in to comment.