updates and backlog

This commit is contained in:
2026-08-08 11:58:01 +02:00
parent e4c0590a81
commit 7da0c922ad
9 changed files with 444 additions and 18 deletions
+2 -2
View File
@@ -141,8 +141,8 @@ def get_deletion_candidates(torrents, limit=10):
for torrent, score in sorted_torrents[:limit]:
now = datetime.now()
age_days = (now - torrent['date_added']).days
inactive_days = (now - torrent['latest_activity']).days
age_days = (now - torrent.get('date_added', now)).days
inactive_days = (now - torrent.get('latest_activity', now)).days
size_str = torrent['size']
size_num = float(size_str.split()[0])