mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 23:24:30 -04:00
fix missing imports
This commit is contained in:
parent
e6830284c5
commit
df593dea0a
3 changed files with 10 additions and 3 deletions
|
@ -25,10 +25,12 @@ class Snapshot(models.Model):
|
|||
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f'[{self.timestamp}] {self.url[:64]} ({self.title[:64]})'
|
||||
title = self.title or '-'
|
||||
return f'[{self.timestamp}] {self.url[:64]} ({title[:64]})'
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f'[{self.timestamp}] {self.url[:64]} ({self.title[:64]})'
|
||||
title = self.title or '-'
|
||||
return f'[{self.timestamp}] {self.url[:64]} ({title[:64]})'
|
||||
|
||||
@classmethod
|
||||
def from_json(cls, info: dict):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue