From 5d88a026cdff14650f369a2f579bee0039eaab1c Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Tue, 14 Jan 2020 13:14:31 +0100 Subject: [PATCH] Fix: Corrected number of last 14 days --- gpx2html/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpx2html/__init__.py b/gpx2html/__init__.py index 402e92f..8f865ec 100755 --- a/gpx2html/__init__.py +++ b/gpx2html/__init__.py @@ -199,7 +199,7 @@ class Gpx2Html(object): end_date = datetime.datetime.today() - start_date = end_date - datetime.timedelta(days=14) + start_date = end_date - datetime.timedelta(days=13) # last 14 days last_n_tracks = self.tracks.tracks(start_date, end_date) last_n_distances = dict() last_n_durations = dict()