updates and backlog
This commit is contained in:
+2
-2
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user