From 4671e5da63a628d2ac3c758c71959f5c81020750 Mon Sep 17 00:00:00 2001 From: Nell Date: Sat, 22 Nov 2025 08:50:14 +0100 Subject: [PATCH] fix delete --- app/torrent/management/commands/torrent_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/torrent/management/commands/torrent_event.py b/app/torrent/management/commands/torrent_event.py index a6fcd6f..0ed2c01 100644 --- a/app/torrent/management/commands/torrent_event.py +++ b/app/torrent/management/commands/torrent_event.py @@ -31,7 +31,7 @@ def update_transmission_data(): def clean_old_torrents(): - expired_date = timezone.now() - timedelta(days=settings.TORRENT_TTL) + expired_date = timezone.now() - timedelta(seconds=settings.TORRENT_TTL) torrent = Torrent.objects.filter(date_created__lt=expired_date).first() if torrent: print(f"delete torrent {torrent.name}")