Skip to content

Commit

Permalink
Merge pull request #310 from robertatakenaka/tk309
Browse files Browse the repository at this point in the history
Como há casos em que o doi pode estar errado (o mesmo doi atribuído p…
  • Loading branch information
gitnnolabs authored Nov 25, 2021
2 parents cbe5a9e + f1ed839 commit 32ed2e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions airflow/dags/operations/sync_kernel_to_website_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,11 @@ def _unpublish_repeated_documents(document_id, doi):
for doc in docs:
if doc._id == document_id:
continue
if doc.title != new_doc.title:
continue
if doc.issue != new_doc.issue and not doc.issue.endswith("aop"):
continue

logging.info("Repeated document %s / %s / %s / %s" %
(doc._id, doc.pid, doc.aop_pid, str(doc.scielo_pids)))
# obtém os pids
Expand Down

0 comments on commit 32ed2e2

Please sign in to comment.