mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2024-09-19 23:49:07 -04:00
simplify history helper
This commit is contained in:
parent
c9162a6d09
commit
46a53eafdb
1 changed files with 1 additions and 2 deletions
|
@ -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 self.as_link_with_details().history
|
||||||
return load_link_details(self.as_link()).history
|
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def latest_title(self):
|
def latest_title(self):
|
||||||
|
|
Loading…
Reference in a new issue