From df056b103ce87e51ed4f2c67a8aa3e2b93727edd Mon Sep 17 00:00:00 2001 From: ngfchl Date: Sat, 1 Oct 2022 16:49:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=B3=E5=89=8D=E7=AB=AF=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E7=AB=99=E7=82=B9tracker=E5=85=B3=E9=94=AE=E5=AD=97=EF=BC=8C?= =?UTF-8?q?=E7=94=A8=E4=BA=8E=E4=B8=8B=E8=BD=BD=E5=99=A8=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E7=A7=8D=E5=AD=90=E6=89=80=E5=B1=9E=E7=AB=99=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_pt/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auto_pt/views.py b/auto_pt/views.py index 080666f..137f474 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -97,7 +97,7 @@ def get_downloading(request): id = request.GET.get('id') print(id) downloader = Downloader.objects.filter(id=id).first() - + tracker_filters = Site.objects.all().values('id', 'name', 'tracker') qb_client = qbittorrentapi.Client( host=downloader.host, port=downloader.port, @@ -162,6 +162,8 @@ def get_downloading(request): torrents.append(torrent) print(len(torrents)) main_data['torrents'] = torrents + # print(tracker_filters) + main_data['tracker_filters'] = list(tracker_filters) # return JsonResponse(CommonResponse.success(data=torrents).to_dict(), safe=False) return JsonResponse(CommonResponse.success(data=main_data).to_dict(), safe=False) except Exception as e: