mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 14:44:18 +00:00
fix snapshot getter in sql saving
This commit is contained in:
parent
58701abf38
commit
bc1f925542
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ def write_sql_link_details(link: Link, out_dir: str=OUTPUT_DIR) -> None:
|
|||
from django.db import transaction
|
||||
|
||||
with transaction.atomic():
|
||||
snap = Snapshot.objects.get(url=link['url'], timestamp=link['timestamp'])
|
||||
snap = Snapshot.objects.get(url=link.url, timestamp=link.timestamp)
|
||||
snap.title = link.title
|
||||
snap.tags = link.tags
|
||||
snap.save()
|
||||
|
|
Loading…
Reference in a new issue