mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 23:54:27 -04:00
feat: Add extractor field to the database
This commit is contained in:
parent
8f3c03a0f9
commit
309a87e8fe
2 changed files with 7 additions and 2 deletions
|
@ -8,6 +8,9 @@ from django.utils.text import slugify
|
|||
|
||||
from ..util import parse_date
|
||||
from ..index.schema import Link
|
||||
from ..extractors import get_default_archive_methods
|
||||
|
||||
EXTRACTORS = [(extractor[0], extractor[0]) for extractor in get_default_archive_methods()]
|
||||
|
||||
|
||||
class Tag(models.Model):
|
||||
|
@ -157,4 +160,5 @@ class ArchiveResult(models.Model):
|
|||
cmd_version = models.CharField(max_length=20, default="")
|
||||
output = models.CharField(max_length=500, default="")
|
||||
start_ts = models.DateTimeField()
|
||||
end_ts = models.DateTimeField()
|
||||
end_ts = models.DateTimeField()
|
||||
extractor = models.CharField(choices=EXTRACTORS, blank=False, max_length=20)
|
Loading…
Add table
Add a link
Reference in a new issue