From c9f791c784e7726ea06056713265d451787636ad Mon Sep 17 00:00:00 2001 From: "yuji.suzuki" <124127211+yjszk@users.noreply.github.com> Date: Thu, 18 Apr 2024 19:18:54 +0900 Subject: [PATCH] bug fix #32 --- cronitor/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cronitor/monitor.py b/cronitor/monitor.py index 6283ac6..cf7ea59 100644 --- a/cronitor/monitor.py +++ b/cronitor/monitor.py @@ -156,7 +156,7 @@ def ping(self, **params): return self._req.get(url=self._ping_api_url(), params=self._clean_params(params), timeout=5, headers=self._headers) def ok(self): - self.ping(state=cronitor.Event.ok) + self.ping(state=cronitor.State.OK) def pause(self, hours): if not self.api_key: