mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-08 00:46:57 +08:00
fix bugs
This commit is contained in:
@@ -74,7 +74,9 @@ def read_switchs(db: Session = Depends(get_db),
|
|||||||
if not switchs:
|
if not switchs:
|
||||||
for noti in NotificationType:
|
for noti in NotificationType:
|
||||||
return_list.append(NotificationSwitch(mtype=noti.value, wechat=True, telegram=True, slack=True))
|
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
|
return return_list
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user