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}")