create_or_update ArchiveResults from history instead of get_or_create
This commit is contained in:
parent
69e0302c2a
commit
75e1bfd0a9
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue