From 11cfd07d711ff8ae2d301fda19dfa08a0712d151 Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Mon, 28 Nov 2022 16:49:09 -0500 Subject: [PATCH] prune: Stream expired files from the database (as opposed to collecting them all first) --- fhost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhost.py b/fhost.py index 07b2437..bda680f 100755 --- a/fhost.py +++ b/fhost.py @@ -461,7 +461,7 @@ def prune(): File.expiration.is_not(None), File.expiration < current_time ) - ).all() + ) files_removed = 0;