Skip to content

Commit 4d609d9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 97a7d55 commit 4d609d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

servicex_app/servicex_app/resources/internal/dataset_lifecycle_ops.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def post(self):
4848
datasets = (
4949
get_all_datasets()
5050
) # by default this will only give non-stale datasets
51-
todelete = [_.id for _ in datasets if _.last_updated and (now - _.last_updated) > delta]
51+
todelete = [
52+
_.id for _ in datasets if _.last_updated and (now - _.last_updated) > delta
53+
]
5254
current_app.logger.info(
5355
f"Obsoletion called for datasets older than {delta}. "
5456
f"Obsoleting {len(todelete)} datasets."

0 commit comments

Comments
 (0)