Turn seconds in to seconds/minutes/hours/etc (github)
This commit is contained in:
parent
ede385aca8
commit
fb125081ad
1 changed files with 1 additions and 1 deletions
|
@ -555,7 +555,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
started_at = self._iso8601(data["check_run"]["started_at"])
|
started_at = self._iso8601(data["check_run"]["started_at"])
|
||||||
completed_at = self._iso8601(data["check_run"]["completed_at"])
|
completed_at = self._iso8601(data["check_run"]["completed_at"])
|
||||||
seconds = (completed_at-started_at).total_seconds()
|
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 = data["check_run"]["status"]
|
||||||
status_str = ""
|
status_str = ""
|
||||||
|
|
Loading…
Reference in a new issue