mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 14:44:18 +00:00
allow filtering snapshots by timestamp in list, update, and remove cmds
This commit is contained in:
parent
0c9db1c554
commit
33d180afe7
1 changed files with 1 additions and 0 deletions
|
@ -356,6 +356,7 @@ LINK_FILTERS = {
|
||||||
'regex': lambda pattern: Q(url__iregex=pattern),
|
'regex': lambda pattern: Q(url__iregex=pattern),
|
||||||
'domain': lambda pattern: Q(url__istartswith=f"http://{pattern}") | Q(url__istartswith=f"https://{pattern}") | Q(url__istartswith=f"ftp://{pattern}"),
|
'domain': lambda pattern: Q(url__istartswith=f"http://{pattern}") | Q(url__istartswith=f"https://{pattern}") | Q(url__istartswith=f"ftp://{pattern}"),
|
||||||
'tag': lambda pattern: Q(tags__name=pattern),
|
'tag': lambda pattern: Q(tags__name=pattern),
|
||||||
|
'timestamp': lambda pattern: Q(timestamp=pattern),
|
||||||
}
|
}
|
||||||
|
|
||||||
@enforce_types
|
@enforce_types
|
||||||
|
|
Loading…
Reference in a new issue