mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
skip item if duplicate id
This commit is contained in:
parent
6ceb0ccf5b
commit
09f40a85dc
1 changed files with 4 additions and 0 deletions
|
|
@ -440,6 +440,10 @@ async def main():
|
|||
original_html,
|
||||
deleted_at,
|
||||
)
|
||||
if id in library_items_original_ids:
|
||||
print('Skipping item', doc_id, 'because it already exists in postgres')
|
||||
continue
|
||||
|
||||
library_items.append(library_item)
|
||||
library_items_original_ids.append(doc_id)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue