Skip to content

Commit

Permalink
修复触发分组新增分组后无法自动勾选问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Feb 21, 2024
1 parent 8eb10ae commit c5cad83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions domain_admin/api/notify_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def add_notify():
type_id = request.json['type_id']
event_id = request.json['event_id']
value = request.json['value']
groups = request.json['groups']
expire_days = request.json['expire_days']
groups = request.json.get('groups') or []
comment = request.json.get('comment') or ''

value_raw = json.dumps(value, ensure_ascii=False)
Expand Down Expand Up @@ -203,9 +203,10 @@ def update_notify_by_id():

event_id = request.json['event_id']
value = request.json['value']
groups = request.json['groups']

expire_days = request.json['expire_days']
comment = request.json.get('comment') or ''
groups = request.json.get('groups') or []

value_raw = json.dumps(value, ensure_ascii=False)
groups_raw = json.dumps(groups, ensure_ascii=False)
Expand Down

0 comments on commit c5cad83

Please sign in to comment.