Skip to content

Commit

Permalink
fix db query
Browse files Browse the repository at this point in the history
  • Loading branch information
matusdrobuliak66 committed Sep 27, 2024
1 parent 80bcf9c commit 0958109
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions services/web/server/src/simcore_service_webserver/projects/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,17 +566,17 @@ async def get_user_specific_project_data_db(
.select_from(
projects.join(
projects_to_folders,
projects.c.uuid == projects_to_folders.c.project_uuid,
isouter=True, # <- left join
)
)
.where(
(projects.c.uuid == f"{project_uuid}")
& (
projects_to_folders.c.user_id
== private_workspace_user_id_or_none
(
(projects_to_folders.c.project_uuid == projects.c.uuid)
& (
projects_to_folders.c.user_id
== private_workspace_user_id_or_none
)
),
isouter=True,
)
)
.where(projects.c.uuid == f"{project_uuid}")
)
row = await result.fetchone()
if row is None:
Expand Down

0 comments on commit 0958109

Please sign in to comment.