瀏覽代碼

match existing snapshots on url only, ignoring timestamp

Nick Sweeting 5 年之前
父節點
當前提交
6e142e3531
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      archivebox/index/sql.py

+ 1 - 1
archivebox/index/sql.py

@@ -48,7 +48,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)
         snap.title = link.title
         snap.tags = link.tags
         snap.save()