File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
services/web/server/src/simcore_service_webserver/projects Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3737 ProjectDBGet ,
3838)
3939
40- _OLDEST_TRASHED_FIRST = OrderBy (field = IDStr ("trashed" ), direction = OrderDirection .ASC )
40+ OLDEST_TRASHED_FIRST = OrderBy (field = IDStr ("trashed" ), direction = OrderDirection .ASC )
4141
4242
4343def _to_sql_expression (table : sa .Table , order_by : OrderBy ):
@@ -59,7 +59,7 @@ async def list_trashed_projects(
5959 offset : NonNegativeInt = 0 ,
6060 limit : PositiveInt = MAXIMUM_NUMBER_OF_ITEMS_PER_PAGE ,
6161 # order
62- order_by : OrderBy = _OLDEST_TRASHED_FIRST ,
62+ order_by : OrderBy = OLDEST_TRASHED_FIRST ,
6363) -> tuple [int , list [ProjectDBGet ]]:
6464
6565 base_query = sql .select (* PROJECT_DB_COLS ).where (projects .c .trashed .is_not (None ))
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ async def batch_delete_trashed_projects_as_admin(
248248 trashed_before = trashed_before ,
249249 offset = page_params .offset ,
250250 limit = page_params .limit ,
251- order_by = _projects_repository ._OLDEST_TRASHED_FIRST ,
251+ order_by = _projects_repository .OLDEST_TRASHED_FIRST ,
252252 )
253253 # BATCH delete
254254 for project in expired_trashed_projects :
You can’t perform that action at this time.
0 commit comments