fix delete

This commit is contained in:
2025-11-22 08:50:14 +01:00
parent 63edacacbf
commit 4671e5da63

View File

@@ -31,7 +31,7 @@ def update_transmission_data():
def clean_old_torrents(): 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() torrent = Torrent.objects.filter(date_created__lt=expired_date).first()
if torrent: if torrent:
print(f"delete torrent {torrent.name}") print(f"delete torrent {torrent.name}")