Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 7, 2024
1 parent 32aded6 commit 779ba98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/backend/app/tasks/tasks_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@
from sqlalchemy.sql import text

from app.auth.osm import AuthUser
from app.auth.roles import mapper, project_admin, get_uid
from app.auth.roles import get_uid, mapper, project_admin
from app.central import central_crud
from app.db import database
from app.models.enums import TaskStatus
from app.projects import project_crud, project_schemas
from app.tasks import tasks_crud, tasks_schemas
from app.users import user_schemas

router = APIRouter(
prefix="/tasks",
Expand Down Expand Up @@ -129,7 +128,6 @@ async def update_task_status(
current_user: AuthUser = Depends(mapper),
):
"""Update the task status."""

user_id = get_uid(current_user)
task = await tasks_crud.update_task_status(db, user_id, task_id, new_status)
updated_task = await tasks_crud.update_task_history(task, db)
Expand Down

0 comments on commit 779ba98

Please sign in to comment.