From e97879811fe5e6567f12caaabdb83e3b0113c89d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 11 Sep 2023 15:45:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9C=80=E8=A6=81=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/hrm/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/hrm/tasks.py b/apps/hrm/tasks.py index 9a1744ae..542ac4ba 100755 --- a/apps/hrm/tasks.py +++ b/apps/hrm/tasks.py @@ -132,4 +132,5 @@ def update_global_face_pd(): facedata = Employee.objects.filter(facenet512_data__isnull=False, user__is_active=True).values_list('id', 'facenet512_data') cache.set('global_face_data', facedata, timeout=None) + global global_face_df global_face_df = pd.DataFrame(list(facedata), columns=["identity", "Facenet512_representation"])