fix timestamps

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-08-27 15:11:23 -04:00
parent 6ccfa3d124
commit 1ff4ffadeb
+1 -1
View File
@@ -83,7 +83,7 @@ def get_predictions(coin):
d = forecast_data_orig['yhat'].to_dict()
predictions = []
for i, k in enumerate(list(d.keys())[-6:]):
w = maya.when(f'{61*i} minutes from now')
w = maya.when(f'{61*i+1} minutes from now')
predictions.append({
'when': w.slang_time(),
'timestamp': w.iso8601(),