mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-03 06:17:53 +10:00
fix: Save history in main index (to mimic previous behaviour)
This commit is contained in:
committed by
Cristian Vargas
parent
7e9d195d13
commit
2aa8d69b72
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user