Skip to content

Commit 1a6e18b

Browse files
committed
using new pagination
1 parent 551da7f commit 1a6e18b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

services/web/server/src/simcore_service_webserver/projects/_trash_service.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ async def list_trashed_projects(
144144
until_equal_datetime: datetime.datetime | None = None,
145145
) -> list[ProjectID]:
146146
"""
147-
Lists all projects that were trashed until a specific datetime.
147+
Lists all projects that were trashed until a specific datetime (if !=None).
148148
"""
149149
trashed_projects: list[ProjectID] = []
150150

@@ -165,11 +165,12 @@ async def list_trashed_projects(
165165
search_by_project_name=None,
166166
)
167167

168-
# NOTE: post filtering because for the moment, i do not want ot modify the interface
169-
# of _crud_api_read.list_projects_full_depth.
170-
# This could not be done at the database level when `projects_repo` is refactored
171-
# by defining a custom trash_filter that permits some flexibility in the filtering
172-
# options
168+
# NOTE: Applying POST-FILTERING because we do not want to modify the interface of
169+
# _crud_api_read.list_projects_full_depth at this time.
170+
# This filtering couldn't be handled at the database level when `projects_repo`
171+
# was refactored, as defining a custom trash_filter was needed to allow more
172+
# flexibility in filtering options.
173+
173174
for project in projects:
174175
trashed_at, trashed_by, trashed_explicitly = _get_trashed_fields(project)
175176

0 commit comments

Comments
 (0)