From f14687350130634ce41e0a3b6c26a43b1c5db28e Mon Sep 17 00:00:00 2001 From: xinwen Date: Thu, 15 Apr 2021 14:28:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20key=3D0=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=88=B0=20key=3D1=20=E6=97=B6=20parent=5Fkey=20=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/migrations/0069_change_node_key0_to_key1.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/assets/migrations/0069_change_node_key0_to_key1.py b/apps/assets/migrations/0069_change_node_key0_to_key1.py index 4024386dc..deb9b0e70 100644 --- a/apps/assets/migrations/0069_change_node_key0_to_key1.py +++ b/apps/assets/migrations/0069_change_node_key0_to_key1.py @@ -42,7 +42,9 @@ def change_key0_to_key1(apps, schema_editor): key_list = n.key.split(':') key_list[0] = '1' new_key = ':'.join(key_list) + new_parent_key = ':'.join(key_list[:-1]) n.key = new_key + n.parent_key = new_parent_key n.save() print('--> Modify key ( {} > {} )'.format(old_key, new_key)) From 5e6e97c8228652497008b5f7474910b3e3de9898 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 15 Apr 2021 15:11:53 +0800 Subject: [PATCH 2/2] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E7=B3=BB=E7=BB=9F=E7=94=A8=E6=88=B7=EF=BC=8C=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=9C=89=E6=95=88=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/tasks/push_system_user.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/assets/tasks/push_system_user.py b/apps/assets/tasks/push_system_user.py index b56cfcdd8..88b3a62a6 100644 --- a/apps/assets/tasks/push_system_user.py +++ b/apps/assets/tasks/push_system_user.py @@ -57,6 +57,7 @@ def get_push_unixlike_system_user_tasks(system_user, username=None): 'state': 'present', 'home': system_user.home or Empty, 'groups': groups or Empty, + 'expires': 99999, 'comment': comment }