Support user-specified expiration times #72

Manually merged
mia merged 14 commits from :expiration into master 2022-11-29 16:20:08 +01:00
Showing only changes of commit 11cfd07d71 - Show all commits

View file

@ -461,7 +461,7 @@ def prune():
File.expiration.is_not(None), File.expiration.is_not(None),
File.expiration < current_time File.expiration < current_time
) )
).all() )
files_removed = 0; files_removed = 0;
Ember marked this conversation as resolved
Review

.all() can be omitted here—unless you want to add a fancy progress bar with tqdm?

`.all()` can be omitted here—unless you want to add a fancy progress bar with `tqdm`?
Review

Noted! Will do! I think I'll leave out the fancy progress bar because I expect that this script (or at least the part of it that does more than add a new column to an empty database) will run a scarce few times, and there's really only a few existing servers where I expect it to take more than a couple seconds.

Noted! Will do! I think I'll leave out the fancy progress bar because I expect that this script (or at least the part of it that does more than add a new column to an empty database) will run a scarce few times, and there's really only a few existing servers where I expect it to take more than a couple seconds.
Review

Oh wait I got mixed up, and thought this comment was on the migration script. Still, I doubt it'll take very long to run, even on larger servers.

Oh wait I got mixed up, and thought this comment was on the migration script. Still, I doubt it'll take very long to run, even on larger servers.
Review
11cfd07