Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
dancoates committed Jun 3, 2024
1 parent 25bb2e2 commit 0e46a13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions db/python/tables/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async def get_projects_accessible_by_user(
parameters['project_ids'] = project_id_filter
project_id_filter_str = 'AND p.id in :project_ids'

query = f"""
_query = f"""
SELECT DISTINCT p.id
FROM project p
INNER JOIN project_groups pg
Expand All @@ -190,7 +190,7 @@ async def get_projects_accessible_by_user(
{project_id_filter_str}
"""

relevant_project_ids = await self.connection.fetch_all(query, parameters)
relevant_project_ids = await self.connection.fetch_all(_query, parameters)

projects = await self._get_projects_by_ids(
[p['id'] for p in relevant_project_ids]
Expand Down Expand Up @@ -448,6 +448,7 @@ async def delete_project_data(
"""
values: dict = {'project': project_id}
if delete_project:
# @FIXME the below looks wrong? Params are missing?
group_ids_rows = await self.connection.fetch_all(
"""
SELECT group_id
Expand Down

0 comments on commit 0e46a13

Please sign in to comment.