forked from DGNum/stateless-uptime-kuma
hack to have impure notifications
This commit is contained in:
parent
caf3169829
commit
78564e5f2c
1 changed files with 0 additions and 2 deletions
|
@ -159,7 +159,6 @@ class Monitor(Item):
|
||||||
if self.id is None:
|
if self.id is None:
|
||||||
rslt = self.api.add_monitor(
|
rslt = self.api.add_monitor(
|
||||||
name=self.name,
|
name=self.name,
|
||||||
notificationIDList=[i.id for i in self.notifications],
|
|
||||||
**self.kwargs,
|
**self.kwargs,
|
||||||
)
|
)
|
||||||
self.id = rslt["monitorID"]
|
self.id = rslt["monitorID"]
|
||||||
|
@ -169,7 +168,6 @@ class Monitor(Item):
|
||||||
rslt = self.api.edit_monitor(
|
rslt = self.api.edit_monitor(
|
||||||
self.id,
|
self.id,
|
||||||
name=self.name,
|
name=self.name,
|
||||||
notificationIDList=[i.id for i in self.notifications],
|
|
||||||
**self.kwargs,
|
**self.kwargs,
|
||||||
)
|
)
|
||||||
current_tags = set(
|
current_tags = set(
|
||||||
|
|
Loading…
Add table
Reference in a new issue