diff options
| author | 2019-02-07 22:32:48 +0000 | |
|---|---|---|
| committer | 2019-02-07 22:32:48 +0000 | |
| commit | fb125081ad4469769b945483fbf04532379790b3 (patch) | |
| tree | 7093292274c74720823b1c886e77e353d373cc04 | |
| parent | Use `check_run` event instead of `status` for CI (github) (diff) | |
| signature | ||
Turn seconds in to seconds/minutes/hours/etc (github)
| -rw-r--r-- | modules/github/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 620b171e..a7f0f1ca 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -555,7 +555,7 @@ class Module(ModuleManager.BaseModule): started_at = self._iso8601(data["check_run"]["started_at"]) completed_at = self._iso8601(data["check_run"]["completed_at"]) seconds = (completed_at-started_at).total_seconds() - duration = " in %ds" % seconds + duration = " in %s" % utils.to_pretty_time(seconds) status = data["check_run"]["status"] status_str = "" |
