Show More
@@ -545,7 +545,7 class UserModel(BaseModel): | |||||
545 | .filter(UsersGroupMember.user_id == uid)\ |
|
545 | .filter(UsersGroupMember.user_id == uid)\ | |
546 | .all() |
|
546 | .all() | |
547 |
|
547 | |||
548 |
multiple_counter = collections. |
|
548 | multiple_counter = collections.defaultdict(int) | |
549 | for perm in user_repo_perms_from_users_groups: |
|
549 | for perm in user_repo_perms_from_users_groups: | |
550 | r_k = perm.UsersGroupRepoToPerm.repository.repo_name |
|
550 | r_k = perm.UsersGroupRepoToPerm.repository.repo_name | |
551 | multiple_counter[r_k] += 1 |
|
551 | multiple_counter[r_k] += 1 | |
@@ -602,7 +602,7 class UserModel(BaseModel): | |||||
602 | .filter(UsersGroupMember.user_id == uid)\ |
|
602 | .filter(UsersGroupMember.user_id == uid)\ | |
603 | .all() |
|
603 | .all() | |
604 |
|
604 | |||
605 |
multiple_counter = collections. |
|
605 | multiple_counter = collections.defaultdict(int) | |
606 | for perm in user_repo_group_perms_from_users_groups: |
|
606 | for perm in user_repo_group_perms_from_users_groups: | |
607 | g_k = perm.UsersGroupRepoGroupToPerm.group.group_name |
|
607 | g_k = perm.UsersGroupRepoGroupToPerm.group.group_name | |
608 | multiple_counter[g_k] += 1 |
|
608 | multiple_counter[g_k] += 1 |
General Comments 0
You need to be logged in to leave comments.
Login now