mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-12 22:25:44 -04:00
fix title display in admin UI and abid filter matching in urls
This commit is contained in:
parent
9273db528e
commit
52a813aa80
3 changed files with 35 additions and 4 deletions
|
@ -213,6 +213,10 @@ class Snapshot(ABIDModel):
|
|||
@property
|
||||
def api_docs_url(self) -> str:
|
||||
return f'/api/v1/docs#/Core%20Models/api_v1_core_get_snapshot'
|
||||
|
||||
@cached_property
|
||||
def title_stripped(self) -> str:
|
||||
return (self.title or '').replace("\n", " ").replace("\r", "")
|
||||
|
||||
@cached_property
|
||||
def extension(self) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue