From e5f6f818b0bcf3165f310e77bb8c5a442ddd1257 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Fri, 27 Dec 2024 17:59:45 +0800 Subject: [PATCH] debug --- update/utils/client_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update/utils/client_util.py b/update/utils/client_util.py index b3f90f5..ab9ed1b 100644 --- a/update/utils/client_util.py +++ b/update/utils/client_util.py @@ -148,7 +148,7 @@ class ClientUtil: print('找到本地文件:', client_version) return # 如果本地没有则到服务器上拉取 - client = ClientRelease.objects.filter(Q(client_ver=client_version) & Q(is_delete=False)).order_by(id).first() + client = ClientRelease.objects.filter(Q(client_ver=client_version) & Q(is_delete=False)).order_by('-id').first() if client.client_type == 'test': self.download_client_file(client.origin_name, r'/客户端/测试专用/') elif client.client_type == 'prd':