Skip to content

Commit 69901dd

Browse files
author
Andrei Neagu
committed
refactor
1 parent 91da37d commit 69901dd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/postgres-database/src/simcore_postgres_database/utils_projects_extensions.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@ class CouldNotCreateOrUpdateUserPreferenceError(Exception): ...
1212

1313

1414
class ProjectsExtensionsRepo:
15-
model: sa.Table = projects_extensions
16-
1715
@classmethod
1816
async def allows_guests_to_push_states_and_output_ports(
1917
cls, async_engine: AsyncEngine, *, project_uuid: str
2018
) -> bool:
2119
async with pass_or_acquire_connection(async_engine) as connection:
2220
result: bool | None = await connection.scalar(
2321
sa.select(
24-
cls.model.c.allow_guests_to_push_states_and_output_ports
25-
).where(cls.model.c.project_uuid == project_uuid)
22+
projects_extensions.c.allow_guests_to_push_states_and_output_ports
23+
).where(projects_extensions.c.project_uuid == project_uuid)
2624
)
2725
return result if result is not None else False
2826

0 commit comments

Comments
 (0)