Skip to content

Commit 13e2786

Browse files
committed
cleanup
1 parent f7d147b commit 13e2786

File tree

1 file changed

+1
-4
lines changed
  • services/web/server/src/simcore_service_webserver/trash

1 file changed

+1
-4
lines changed

services/web/server/src/simcore_service_webserver/trash/_service.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,11 @@ async def safe_empty_trash(
107107
await _empty_explicitly_trashed_folders_and_content(app, product_name, user_id)
108108

109109

110-
async def safe_delete_expired_trash_as_admin(app: web.Application) -> list:
110+
async def safe_delete_expired_trash_as_admin(app: web.Application) -> None:
111111
settings = get_plugin_settings(app)
112112
retention = timedelta(days=settings.TRASH_RETENTION_DAYS)
113113
delete_until = arrow.now().datetime - retention
114114

115-
deleted = [] # TODO: delete count of all items? ids? delete-stats?
116115
for product in products_service.list_products(app):
117116

118117
ctx = {
@@ -164,5 +163,3 @@ async def safe_delete_expired_trash_as_admin(app: web.Application) -> list:
164163
error_context=ctx,
165164
)
166165
)
167-
168-
return deleted

0 commit comments

Comments
 (0)