fix: Save history in main index (to mimic previous behaviour)

This commit is contained in:
Cristian 2020-08-28 11:08:03 -05:00 committed by Cristian Vargas
parent 7e9d195d13
commit 2aa8d69b72
3 changed files with 19 additions and 4 deletions

View file

@ -47,6 +47,10 @@ class Snapshot(models.Model):
def as_link(self) -> Link:
return Link.from_json(self.as_json())
def as_link_with_details(self) -> Link:
from ..index import load_link_details
return load_link_details(self.as_link())
@cached_property
def bookmarked(self):
return parse_date(self.timestamp)