RogerWork 4 months ago
parent ed65ae7312
commit 5262d89d98
  1. 3
      update/utils/client_util.py

@ -185,7 +185,8 @@ class ClientUtil:
# 上传操作
client_version = self.get_client_version(cinema_ip, short_version)
print(f'开始上传操作, 目标主机 {cinema_ip}, 客户端版本 {client_version}')
client = ClientRelease.objects.filter(Q(client_ver=client_version) & Q(is_delete=False)).first()
client = ClientRelease.objects.filter(Q(client_ver=client_version) & Q(is_delete=False)).order_by('-id').first()
print(client)
self.upload(cinema_ip, client.origin_name, client.upload_name)
# 更新数据库
cine = Cinema.objects.filter(ip=cinema_ip).first()

Loading…
Cancel
Save