From a2bbf11f9d7b3906631a9ec46dfd71238a7f96b9 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 20 Jun 2023 17:54:02 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=B7=BB=E5=8A=A0=20migrate=20debug=20?= =?UTF-8?q?msg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/migrations/0098_auto_20220430_2126.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/assets/migrations/0098_auto_20220430_2126.py b/apps/assets/migrations/0098_auto_20220430_2126.py index ed7de94e0..8d1cfdc5e 100644 --- a/apps/assets/migrations/0098_auto_20220430_2126.py +++ b/apps/assets/migrations/0098_auto_20220430_2126.py @@ -145,6 +145,7 @@ def migrate_ori_host_to_devices(apps, *args): assets = asset_model.objects.filter(id__in=hosts_need_migrate_to_device.values_list('asset_ptr_id', flat=True)) assets_map = {asset.id: asset for asset in assets} + print("\t- Migrate ori host to device: ", len(hosts_need_migrate_to_device)) for host in hosts_need_migrate_to_device: asset = assets_map.get(host.asset_ptr_id) if not asset: