mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-06-04 16:53:53 -04:00
refactor: oneshot command is functional
This commit is contained in:
parent
973f8b6abc
commit
c51d789ad4
5 changed files with 13 additions and 10 deletions
|
@ -14,7 +14,7 @@ from ..index.schema import Link
|
|||
from ..config import CONFIG
|
||||
|
||||
#EXTRACTORS = [(extractor[0], extractor[0]) for extractor in get_default_archive_methods()]
|
||||
EXTRACTORS = ["title", "wget"]
|
||||
EXTRACTORS = [("title", "title"), ("wget", "wget")]
|
||||
STATUS_CHOICES = [
|
||||
("succeeded", "succeeded"),
|
||||
("failed", "failed"),
|
||||
|
|
|
@ -41,6 +41,7 @@ class MainIndex(View):
|
|||
|
||||
|
||||
class LinkDetails(View):
|
||||
|
||||
def get(self, request, path):
|
||||
# missing trailing slash -> redirect to index
|
||||
if '/' not in path:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue