aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fietsboek/models/track.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fietsboek/models/track.py b/fietsboek/models/track.py
index 0b75ce6..c61c4e3 100644
--- a/fietsboek/models/track.py
+++ b/fietsboek/models/track.py
@@ -494,7 +494,7 @@ class Track(Base):
"""Ensure that a cached version of this track's metadata exists."""
if self.cache is not None:
return
- self.cache = TrackCache(track=self)
+ self.cache = TrackCache()
meta = self.path().movement_data()
self.cache.length = meta.length
self.cache.uphill = meta.uphill