From f81e855b71ebac0845fe06fe0bd06cdbf7b1cc7e Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Tue, 29 Sep 2020 00:04:34 +0300 Subject: Small changes --- iss/predictions.py | 3 ++- iss/templates/passes.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/iss/predictions.py b/iss/predictions.py index b62465d..3737760 100644 --- a/iss/predictions.py +++ b/iss/predictions.py @@ -1,7 +1,7 @@ from collections import defaultdict from skyfield.api import Topos, load -from .utils import chunks, deg_to_cardinal +from .utils import chunks, deg_to_cardinal, seconds_to_minutes ISS = "ISS (ZARYA)" @@ -65,6 +65,7 @@ class Predictions(object): length = int((zet - rise) * 86400) return { "length": length, + "length_mins": seconds_to_minutes(length), "rise": self.get_position_details(rise), "culminate": self.get_position_details(culminate), "set": self.get_position_details(zet), diff --git a/iss/templates/passes.html b/iss/templates/passes.html index 5e4ce06..63ef325 100644 --- a/iss/templates/passes.html +++ b/iss/templates/passes.html @@ -28,7 +28,7 @@