mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-21 18:35:23 -04:00
feat: Update list
command to sort using sqlite
This commit is contained in:
parent
f55153eab3
commit
7e9d195d13
2 changed files with 17 additions and 3 deletions
|
@ -733,8 +733,8 @@ def list_all(filter_patterns_str: Optional[str]=None,
|
|||
after=after,
|
||||
)
|
||||
|
||||
#if sort:
|
||||
# snapshots = sorted(links, key=lambda link: getattr(link, sort))
|
||||
if sort:
|
||||
snapshots = snapshots.order_by(sort)
|
||||
|
||||
folders = list_folders(
|
||||
links=snapshots,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue