Skip to content

Commit

Permalink
fix: docstring on function
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradip-p committed Aug 1, 2024
1 parent 4a1aae9 commit f090a7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/app/tasks/task_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async def get_requested_user_id(


async def get_project_task_by_id(db: Database, user_id: str):
"""Get a list of pending tasks for a specific project and user."""
"""Get a list of pending tasks for a specific user(project creator)."""
raw_sql = """
SELECT t.id AS task_id, te.event_id, te.user_id, te.project_id, te.comment, te.state, te.created_at
FROM tasks t
Expand Down
2 changes: 1 addition & 1 deletion src/backend/app/tasks/task_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ async def get_pending_tasks(
user_data: AuthUser = Depends(login_required),
db: Database = Depends(database.get_db),
):
"""Get a list of pending tasks for a specific project and user."""
"""Get a list of pending tasks for a project creator."""
user_id = user_data.id
query = """SELECT role FROM user_profile WHERE user_id = :user_id"""
record = await db.fetch_one(query, {"user_id": user_id})
Expand Down

0 comments on commit f090a7c

Please sign in to comment.