From 6b1ceae6c5f0acc95acbc88eb84477a2846e6cf1 Mon Sep 17 00:00:00 2001 From: Bai Date: Mon, 5 Aug 2024 16:28:22 +0800 Subject: [PATCH] perf: delete blank line --- apps/terminal/models/applet/applet.py | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/terminal/models/applet/applet.py b/apps/terminal/models/applet/applet.py index 8b91c7b5f..783e09e1d 100644 --- a/apps/terminal/models/applet/applet.py +++ b/apps/terminal/models/applet/applet.py @@ -178,7 +178,6 @@ class Applet(JMSBaseModel): if host_matched: return random.choice(host_matched) - hosts = [h for h in hosts if h.auto_create_accounts] prefer_key = self.host_prefer_key_tpl.format(user.id) prefer_host_id = cache.get(prefer_key, None)