diff options
| author | Yuval Adam <_@yuv.al> | 2020-09-28 11:06:17 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2020-09-28 11:06:17 +0300 |
| commit | 6ca40df643842932c9b36557ce69fd7a2ed0e6c4 (patch) | |
| tree | 2a8ba7ee8273bc0cc28c8c804fd47f8a7b342cb7 /iss/predictions.py | |
| parent | 891cbb41f9be3074549ff93cda3db22210bb1321 (diff) | |
Calculate pass length
Diffstat (limited to 'iss/predictions.py')
| -rw-r--r-- | iss/predictions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/iss/predictions.py b/iss/predictions.py index 1bdd10e..bab9f17 100644 --- a/iss/predictions.py +++ b/iss/predictions.py @@ -59,7 +59,9 @@ class Predictions(object): } def get_prediction_details(self, rise, culminate, zet): + length = int((zet - rise) * 86400) return { + "length": length, "rise": self.get_position_details(rise), "culminate": self.get_position_details(culminate), "set": self.get_position_details(zet), |
