From 09db2ad3e1355e741d71328fdd673e18dcd575fb Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 28 Aug 2023 16:48:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E7=9A=84=20sftp=20=E6=95=B0=E9=87=8F=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/migrations/0121_auto_20230725_1458.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/assets/migrations/0121_auto_20230725_1458.py b/apps/assets/migrations/0121_auto_20230725_1458.py index 9e50e4337..c5686d950 100644 --- a/apps/assets/migrations/0121_auto_20230725_1458.py +++ b/apps/assets/migrations/0121_auto_20230725_1458.py @@ -49,11 +49,11 @@ def migrate_assets_sftp_protocol(apps, schema_editor): count = 0 print("\nAsset add sftp protocol: ") - asset_ids = asset_cls.objects\ + asset_ids = list(asset_cls.objects\ .filter(platform__in=sftp_platforms)\ .exclude(protocols__name='sftp')\ .distinct()\ - .values_list('id', flat=True) + .values_list('id', flat=True)) while True: _asset_ids = asset_ids[count:count + 1000] if not _asset_ids: