This commit is contained in:
jxxghp 2023-07-14 08:18:37 +08:00
parent beed9b3662
commit c1e8b6d0ff

View File

@ -74,7 +74,9 @@ def read_switchs(db: Session = Depends(get_db),
if not switchs:
for noti in NotificationType:
return_list.append(NotificationSwitch(mtype=noti.value, wechat=True, telegram=True, slack=True))
else:
for switch in switchs:
return_list.append(NotificationSwitch(**switch))
return return_list