From e932cf56b088b4fed3c34992c830a5eadc80ec81 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Mon, 26 Dec 2022 12:38:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtr=E4=B8=8B=E8=BD=BD=E5=99=A8?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E5=89=A9=E4=BD=99=E7=A9=BA=E9=97=B4=E6=97=B6?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pt_site/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pt_site/admin.py b/pt_site/admin.py index 01c23cb..7707050 100644 --- a/pt_site/admin.py +++ b/pt_site/admin.py @@ -940,7 +940,7 @@ class TorrentInfoAdmin(AjaxAdmin): # instead of ModelAdmin username=downloader.username, password=downloader.password) # 判断剩余空间大小,小于预留空间则停止推送种子 - free_space = tr_client.free_space('/downloads') + free_space = tr_client.free_space(save_path) print(FileSizeConvert.parse_2_file_size(free_space)) if free_space < total_size: return JsonResponse(data={