mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-12 22:25:44 -04:00
move util.py into misc folder
This commit is contained in:
parent
dfca4b13b2
commit
363a499289
68 changed files with 136 additions and 161 deletions
|
@ -23,7 +23,7 @@ from abid_utils.models import ABIDModel, ABIDField, AutoDateTimeField
|
|||
from queues.tasks import bg_archive_snapshot
|
||||
|
||||
from archivebox.misc.system import get_dir_size
|
||||
from ..util import parse_date, base_url
|
||||
from archivebox.misc.util import parse_date, base_url
|
||||
from ..index.schema import Link
|
||||
from ..index.html import snapshot_icons
|
||||
from ..extractors import ARCHIVE_METHODS_INDEXING_PRECEDENCE, EXTRACTORS
|
||||
|
@ -231,7 +231,7 @@ class Snapshot(ABIDModel):
|
|||
|
||||
@cached_property
|
||||
def extension(self) -> str:
|
||||
from ..util import extension
|
||||
from archivebox.misc.util import extension
|
||||
return extension(self.url)
|
||||
|
||||
@cached_property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue