From d0d5cc4d0866d44eed652221940035d855296253 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 30 Jan 2020 21:12:31 +0000 Subject: split utils.datetime out in to .parse and .format --- modules/git_webhooks/github.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/git_webhooks/github.py') diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py index 96dc26c3..a3f51c89 100644 --- a/modules/git_webhooks/github.py +++ b/modules/git_webhooks/github.py @@ -183,7 +183,7 @@ class GitHub(object): return url def _iso8601(self, s): - return utils.datetime.iso8601_parse(s) + return utils.datetime.parse.iso8601(s) def ping(self, data): return ["Received new webhook"] @@ -444,7 +444,8 @@ class GitHub(object): completed_at = self._iso8601(data["check_run"]["completed_at"]) if completed_at > started_at: seconds = (completed_at-started_at).total_seconds() - duration = " in %s" % utils.datetime.to_pretty_time(seconds) + duration = " in %s" % utils.datetime.format.to_pretty_time( + seconds) status = data["check_run"]["status"] status_str = "" -- cgit v1.3.1-10-gc9f91