From 33182fd53c0d96f46576ee38551a7ac4a50ee534 Mon Sep 17 00:00:00 2001 From: Cristian Date: Wed, 4 Nov 2020 15:07:45 -0500 Subject: [PATCH] fix: Add missing assignation --- archivebox/extractors/__init__.py | 2 +- tests/test_update.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/archivebox/extractors/__init__.py b/archivebox/extractors/__init__.py index e27b9d80..ef5ef446 100644 --- a/archivebox/extractors/__init__.py +++ b/archivebox/extractors/__init__.py @@ -72,7 +72,7 @@ def archive_link(link: Link, overwrite: bool=False, methods: Optional[Iterable[s try: snapshot = Snapshot.objects.get(url=link.url) # TODO: This will be unnecessary once everything is a snapshot except Snapshot.DoesNotExist: - write_link_to_sql_index(link) + snapshot = write_link_to_sql_index(link) ARCHIVE_METHODS = get_default_archive_methods() diff --git a/tests/test_update.py b/tests/test_update.py index 29db0174..95a61ce9 100644 --- a/tests/test_update.py +++ b/tests/test_update.py @@ -17,7 +17,6 @@ def test_update_status_invalid(tmp_path, process, disable_extractors_dict): assert link is None update_process = subprocess.run(['archivebox', 'update', '--status=invalid'], capture_output=True, env=disable_extractors_dict) - #breakpoint() conn = sqlite3.connect(str(tmp_path / "index.sqlite3")) c = conn.cursor()