parse and load existing index with any new links from import_path merged in
(out_dir: Path=OUTPUT_DIR, warn: bool=True)
| 247 | |
| 248 | @enforce_types |
| 249 | def load_main_index(out_dir: Path=OUTPUT_DIR, warn: bool=True) -> List[Link]: |
| 250 | """parse and load existing index with any new links from import_path merged in""" |
| 251 | from core.models import Snapshot |
| 252 | try: |
| 253 | return Snapshot.objects.all() |
| 254 | |
| 255 | except (KeyboardInterrupt, SystemExit): |
| 256 | raise SystemExit(0) |
| 257 | |
| 258 | @enforce_types |
| 259 | def load_main_index_meta(out_dir: Path=OUTPUT_DIR) -> Optional[dict]: |
no outgoing calls