Browse Source

simplify history helper

Nick Sweeting 5 years ago
parent
commit
46a53eafdb
1 changed files with 1 additions and 2 deletions
  1. 1 2
      archivebox/core/models.py

+ 1 - 2
archivebox/core/models.py

@@ -139,8 +139,7 @@ class Snapshot(models.Model):
     @cached_property
     @cached_property
     def history(self):
     def history(self):
         # TODO: use ArchiveResult for this instead of json
         # TODO: use ArchiveResult for this instead of json
-        from ..index import load_link_details
-        return load_link_details(self.as_link()).history
+        return self.as_link_with_details().history
 
 
     @cached_property
     @cached_property
     def latest_title(self):
     def latest_title(self):