1
0
Fork 0
mirror of synced 2024-06-26 10:00:19 +12:00

create_or_update ArchiveResults from history instead of get_or_create

This commit is contained in:
Nick Sweeting 2021-02-18 02:34:20 -05:00
parent 69e0302c2a
commit 75e1bfd0a9

View file

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