mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-18 17:14:39 -04:00
add pipenv, schedule cmd, logs dir, and lots more
This commit is contained in:
parent
4f869f235f
commit
39a0ab3013
20 changed files with 820 additions and 188 deletions
|
@ -4,14 +4,14 @@ from typing import List, Iterator
|
|||
|
||||
from ..schema import Link
|
||||
from ..util import enforce_types
|
||||
from ..config import setup_django
|
||||
from ..config import setup_django, OUTPUT_DIR
|
||||
|
||||
|
||||
### Main Links Index
|
||||
|
||||
@enforce_types
|
||||
def parse_sql_main_index() -> Iterator[Link]:
|
||||
setup_django()
|
||||
def parse_sql_main_index(out_dir: str=OUTPUT_DIR) -> Iterator[Link]:
|
||||
setup_django(out_dir, check_db=True)
|
||||
from core.models import Page
|
||||
|
||||
return (
|
||||
|
@ -20,8 +20,8 @@ def parse_sql_main_index() -> Iterator[Link]:
|
|||
)
|
||||
|
||||
@enforce_types
|
||||
def write_sql_main_index(links: List[Link]) -> None:
|
||||
setup_django()
|
||||
def write_sql_main_index(links: List[Link], out_dir: str=OUTPUT_DIR) -> None:
|
||||
setup_django(out_dir, check_db=True)
|
||||
from core.models import Page
|
||||
|
||||
for link in links:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue