From 46a53eafdb121a2ef353e1a361ae35aced931b60 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 28 Nov 2020 01:14:45 -0500 Subject: [PATCH] simplify history helper --- archivebox/core/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/archivebox/core/models.py b/archivebox/core/models.py index d938c53f..5555c798 100644 --- a/archivebox/core/models.py +++ b/archivebox/core/models.py @@ -139,8 +139,7 @@ class Snapshot(models.Model): @cached_property def history(self): # 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 def latest_title(self):