diff options
| author | Yuval Adam <_@yuv.al> | 2020-09-29 00:04:34 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2020-09-29 00:04:34 +0300 |
| commit | f81e855b71ebac0845fe06fe0bd06cdbf7b1cc7e (patch) | |
| tree | d33eb0ba32d6cf375f7e3bc70966bdcadef88620 | |
| parent | 723a686cfc1e5c91e3837499f22c7a56b1c77620 (diff) | |
Small changesvue
| -rw-r--r-- | iss/predictions.py | 3 | ||||
| -rw-r--r-- | 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 @@ <th>Azimuth</th> </tr> <tr class="pa1" v-for="pred in localizedPredictions"> - <td>[[ pred.length ]]</td> + <td class="f5">[[ pred.length_mins ]]</td> <td>[[ pred.date ]]</td> <td>[[ pred.rise.time ]]</td> <td> @@ -40,7 +40,7 @@ <span class="f4">[[ pred.culminate.direction ]]</span> <span class="f6 mid-gray">[[ pred.culminate.azimuth ]]</span> </td> - <td>[[ pred.culminate.degrees ]]</td> + <td class="f4">[[ pred.culminate.degrees ]]</td> <td>[[ pred.culminate.distance ]]</td> <td>[[ pred.set.time ]]</td> <td> |
