changeset 8944:6d7731180a7b stable

repo group: drop pointless double handling of parent_group_id updates
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 10 Dec 2022 17:54:16 +0100
parents 5f8f52a2f4b4
children 03d51a2a395d
files kallithea/model/repo_group.py
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/model/repo_group.py	Sat Dec 10 17:43:06 2022 +0100
+++ b/kallithea/model/repo_group.py	Sat Dec 10 17:54:16 2022 +0100
@@ -284,9 +284,6 @@
             if 'group_description' in repo_group_args:
                 repo_group.group_description = repo_group_args['group_description']
             if 'parent_group_id' in repo_group_args:
-                repo_group.parent_group_id = repo_group_args['parent_group_id']
-
-            if 'parent_group_id' in repo_group_args:
                 assert repo_group_args['parent_group_id'] != '-1', repo_group_args  # RepoGroupForm should have converted to None
                 repo_group.parent_group = db.RepoGroup.get(repo_group_args['parent_group_id'])
             if 'group_name' in repo_group_args: