Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Como há casos em que o doi pode estar errado (o mesmo doi atribuído p… #310

Merged
merged 1 commit into from
Nov 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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