Changeset - 6d7731180a7b
[Not reviewed]
stable
0 1 0
Mads Kiilerich - 3 years ago 2022-12-10 17:54:16
mads@kiilerich.com
repo group: drop pointless double handling of parent_group_id updates
1 file changed with 0 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/model/repo_group.py
Show inline comments
 
@@ -284,9 +284,6 @@ class RepoGroupModel(object):
 
            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:
0 comments (0 inline, 0 general)