Skip to content

Commit

Permalink
bugfix: 如果用户删除分组后,分组数据不存在会出现null问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Feb 26, 2024
1 parent de33490 commit 8fd13fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion domain_admin/api/notify_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ def get_notify_list_of_user():
for row in lst:
group_list = []
for group in row['groups']:
group_list.append(group_dict.get(group))
# bugfix: 如果用户删除分组后,分组数据不存在会出现null问题
if group in group_dict:
group_list.append(group_dict.get(group))

row['group_list'] = group_list

Expand Down

0 comments on commit 8fd13fe

Please sign in to comment.