Skip to content

Commit ceb430f

Browse files
committed
sql 2.0
1 parent eadb6da commit ceb430f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

services/web/server/src/simcore_service_webserver/functions/_functions_repository.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,11 +565,11 @@ async def list_function_job_collections(
565565
):
566566
collection = RegisteredFunctionJobCollectionDB.model_validate(row)
567567
job_ids = [
568-
job_row["function_job_uuid"]
568+
job_row.function_job_uuid
569569
async for job_row in await conn.stream(
570570
function_job_collections_to_function_jobs_table.select().where(
571571
function_job_collections_to_function_jobs_table.c.function_job_collection_uuid
572-
== row["uuid"]
572+
== row.uuid
573573
)
574574
)
575575
]

services/web/server/tests/unit/with_dbs/04/functions_rpc/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from uuid import uuid4
1010

1111
import pytest
12+
import sqlalchemy
1213
from aiohttp.test_utils import TestClient
1314
from models_library.api_schemas_webserver.functions import (
1415
Function,
@@ -188,7 +189,7 @@ async def add_user_function_api_access_rights(
188189
async with asyncpg_engine.begin() as conn:
189190
for group_id in (logged_user["primary_gid"], other_logged_user["primary_gid"]):
190191
await conn.execute(
191-
funcapi_api_access_rights_table.delete( # type: ignore[union-attr]
192+
sqlalchemy.delete(funcapi_api_access_rights_table).where(
192193
funcapi_api_access_rights_table.c.group_id == group_id
193194
)
194195
)

0 commit comments

Comments
 (0)