From fb125081ad4469769b945483fbf04532379790b3 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 7 Feb 2019 22:32:48 +0000 Subject: [PATCH] Turn seconds in to seconds/minutes/hours/etc (github) --- modules/github/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ""