prune: Stream expired files from the database
(as opposed to collecting them all first)
This commit is contained in:
parent
60db7938c8
commit
11cfd07d71
1 changed files with 1 additions and 1 deletions
2
fhost.py
2
fhost.py
|
@ -461,7 +461,7 @@ def prune():
|
|||
File.expiration.is_not(None),
|
||||
File.expiration < current_time
|
||||
)
|
||||
).all()
|
||||
)
|
||||
|
||||
files_removed = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue