From 40b7d979db503ea9c9e46aafc323b6f5ebab9f5b Mon Sep 17 00:00:00 2001 From: RogerWork Date: Wed, 21 Feb 2024 08:59:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E7=BA=BF=E4=B8=8A=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update/views.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/update/views.py b/update/views.py index a0d5a72..87e22c1 100644 --- a/update/views.py +++ b/update/views.py @@ -114,6 +114,9 @@ def update_cine(request): cmd_dict[cmd['process']] = [cmd['id']] print(cmd_dict) + # 初始化redis + redis_conn = get_redis_connection() + # 增加状态 update_status = { 'git': {'result': '', 'msg': ''}, @@ -125,8 +128,8 @@ def update_cine(request): } cinema_update_status[cinema_ip] = copy.deepcopy(update_status) - redis_conn = get_redis_connection() - redis_conn.set(f'cinema_update_status_{cinema_ip}', json.dumps(update_status), 10*60) + + # redis_conn.set(f'cinema_update_status_{cinema_ip}', json.dumps(update_status), 10*60) print("ws调试", cinema_update_status) short_release = req.get('version')