Skip to content

Commit

Permalink
bug fix #32
Browse files Browse the repository at this point in the history
  • Loading branch information
yjszk committed Apr 18, 2024
1 parent 30d26b5 commit c9f791c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cronitor/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c9f791c

Please sign in to comment.