diff --git a/src/backend/app/projects/project_crud.py b/src/backend/app/projects/project_crud.py index a274cd18af..ec6552d06d 100644 --- a/src/backend/app/projects/project_crud.py +++ b/src/backend/app/projects/project_crud.py @@ -2814,7 +2814,11 @@ def is_valid_coordinate(coord): raise HTTPException(status_code=400, detail=error_message) -def get_tasks_count(db:Session, project_id:int): - db_task = db.query(db_models.DbProject).filter(db_models.DbProject.id==project_id).first() +def get_tasks_count(db: Session, project_id: int): + db_task = ( + db.query(db_models.DbProject) + .filter(db_models.DbProject.id == project_id) + .first() + ) task_count = len(db_task.tasks) - return task_count \ No newline at end of file + return task_count