Skip to content

Commit c768758

Browse files
committed
bug-commit-ingestion-api
1 parent 4fa22fe commit c768758

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/IngestionAPI/lib.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,10 +1489,6 @@ def load_reference_data(conn, data_row) -> str:
14891489
report_type = ""
14901490
v_data = get_bool_val("no")
14911491

1492-
# Check by citation+year regardless of whether either is empty (to prevent duplicate insertion)
1493-
_record_exist = record_exist(
1494-
conn,
1495-
query=template_select_reference_data.format(
14961492
# Check and update source by citation_doi only if citation is present
14971493
if citation and citation.strip():
14981494
# Check by citation only if citation is present (prevent duplicate insertions)
@@ -1536,7 +1532,6 @@ def load_reference_data(conn, data_row) -> str:
15361532
author=author,
15371533
article_title=article_title,
15381534
journal_title=journal_title,
1539-
year=year,
15401535
citation=citation,
15411536
year=year,
15421537
),

0 commit comments

Comments
 (0)