diff options
| author | 2020-01-30 21:12:31 +0000 | |
|---|---|---|
| committer | 2020-01-30 21:20:56 +0000 | |
| commit | d0d5cc4d0866d44eed652221940035d855296253 (patch) | |
| tree | 1683eb3aaf56b457835fb0229379530a7013280d /modules/git_webhooks/github.py | |
| parent | replace "/" in channel logfile names with "," (diff) | |
| signature | ||
split utils.datetime out in to .parse and .format
Diffstat (limited to 'modules/git_webhooks/github.py')
| -rw-r--r-- | modules/git_webhooks/github.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 = "" |
