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 Aug 6, 2024
1 parent 37a7996 commit a412fbf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/backend/app/tasks/task_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ async def new_event(
case EventType.REQUESTS:
# TODO: Combine the logic of `update_or_create_task_state` and `request_mapping` functions into a single function if possible. Will do later.
project = await get_project_by_id(db, project_id)
if project['auto_lock_tasks'] == 'true':
data = await task_crud.update_or_create_task_state(
db,
project_id,
task_id,
user_id,
"Request accepted automatically",
State.REQUEST_FOR_MAPPING,
State.LOCKED_FOR_MAPPING,
)
if project["auto_lock_tasks"] == "true":
data = await task_crud.update_or_create_task_state(
db,
project_id,
task_id,
user_id,
"Request accepted automatically",
State.REQUEST_FOR_MAPPING,
State.LOCKED_FOR_MAPPING,
)
else:
data = await task_crud.request_mapping(
db,
Expand Down

0 comments on commit a412fbf

Please sign in to comment.