diff --git a/src/backend/app/tasks/task_routes.py b/src/backend/app/tasks/task_routes.py index 16e304ba..b9196de2 100644 --- a/src/backend/app/tasks/task_routes.py +++ b/src/backend/app/tasks/task_routes.py @@ -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,