fix: 未激活的发布机,将无法使用

pull/9674/head
Eric 2023-02-21 22:25:50 +08:00
parent 5add329a30
commit 8f5d280e31
1 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,8 @@ class Applet(JMSBaseModel):
return instance
def select_host_account(self):
hosts = list(self.hosts.all())
# 选择激活的发布机
hosts = list(self.hosts.filter(is_active=True).all())
if not hosts:
return None