From 1ff4ffadeb8963600fa6cdbb8dd4f8880bf2eb90 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 27 Aug 2017 15:11:23 -0400 Subject: [PATCH] fix timestamps Signed-off-by: Kenneth Reitz --- predictions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/predictions.py b/predictions.py index 19ae4e7..8465bcc 100644 --- a/predictions.py +++ b/predictions.py @@ -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(),