mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-21 02:15:10 -04:00
finish migrating almost all config to new system
This commit is contained in:
parent
4b6a2a3e50
commit
d21bc86075
25 changed files with 246 additions and 349 deletions
|
@ -1,13 +1,11 @@
|
|||
__package__ = 'archivebox.misc'
|
||||
|
||||
from benedict import benedict
|
||||
|
||||
from archivebox.config import DATA_DIR, ARCHIVE_DIR, CONSTANTS, SHELL_CONFIG
|
||||
|
||||
from .logging import stderr
|
||||
|
||||
|
||||
def check_data_folder(config: benedict) -> None:
|
||||
def check_data_folder() -> None:
|
||||
|
||||
archive_dir_exists = ARCHIVE_DIR.exists()
|
||||
if not archive_dir_exists:
|
||||
|
@ -23,7 +21,7 @@ def check_data_folder(config: benedict) -> None:
|
|||
raise SystemExit(2)
|
||||
|
||||
|
||||
def check_migrations(config: benedict):
|
||||
def check_migrations():
|
||||
from ..index.sql import list_migrations
|
||||
|
||||
pending_migrations = [name for status, name in list_migrations() if not status]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue