1
0
Fork 0

fix: Add missing assignation

This commit is contained in:
Cristian 2020-11-04 15:07:45 -05:00
parent d064a3eeff
commit 33182fd53c
2 changed files with 1 additions and 2 deletions

View file

@ -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()

View file

@ -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()