Fix: Corrected number of last 14 days

This commit is contained in:
Thomas Klaehn 2020-01-14 13:14:31 +01:00
parent 9761814f6f
commit 5d88a026cd

View File

@ -199,7 +199,7 @@ class Gpx2Html(object):
end_date = datetime.datetime.today() 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_tracks = self.tracks.tracks(start_date, end_date)
last_n_distances = dict() last_n_distances = dict()
last_n_durations = dict() last_n_durations = dict()