mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix: Save history in main index (to mimic previous behaviour)
This commit is contained in:
parent
7e9d195d13
commit
2aa8d69b72
3 changed files with 19 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue