mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-29 09:10:13 +02:00
better folder list column output
This commit is contained in:
@@ -127,7 +127,7 @@ class Link:
|
|||||||
|
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return f'[{self.timestamp}] {self.base_url} "{self.title}"'
|
return f'[{self.timestamp}] {self.url} "{self.title}"'
|
||||||
|
|
||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
self.typecheck()
|
self.typecheck()
|
||||||
|
@@ -469,7 +469,10 @@ def printable_folders(folders: Dict[str, Optional["Link"]],
|
|||||||
from .index.csv import links_to_csv
|
from .index.csv import links_to_csv
|
||||||
return links_to_csv(folders.values(), cols=csv.split(','), header=True)
|
return links_to_csv(folders.values(), cols=csv.split(','), header=True)
|
||||||
|
|
||||||
return '\n'.join(f'{folder} {link}' for folder, link in folders.items())
|
return '\n'.join(
|
||||||
|
f'{folder} {link and link.url} "{link and link.title}"'
|
||||||
|
for folder, link in folders.items()
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user