Browse Source

create_or_update ArchiveResults from history instead of get_or_create

Nick Sweeting 4 years ago
parent
commit
75e1bfd0a9
1 changed files with 1 additions and 3 deletions
  1. 1 3
      archivebox/index/sql.py

+ 1 - 3
archivebox/index/sql.py

@@ -61,7 +61,7 @@ def write_link_to_sql_index(link: Link):
                     }
                 )
             else:
-                result, _ = ArchiveResult.objects.get_or_create(
+                result, _ = ArchiveResult.objects.create_or_update(
                     snapshot_id=snapshot.id,
                     extractor=extractor,
                     start_ts=parse_date(entry.start_ts),
@@ -75,8 +75,6 @@ def write_link_to_sql_index(link: Link):
                     }
                 )
 
-            print(result)
-
     return snapshot