Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
datadavev committed Dec 1, 2022
2 parents c62fc51 + efa7c52 commit 6791b6c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
20 changes: 13 additions & 7 deletions impl/enqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,20 @@ def enqueue(
ref_id_model = create_ref_id_model(si_model)

queue_model_list = [ezidapp.models.async_queue.SearchIndexerQueue]
if updateExternalServices:
queue_model_list.extend(
(
ezidapp.models.async_queue.BinderQueue,
ezidapp.models.async_queue.CrossrefQueue,
ezidapp.models.async_queue.DataciteQueue,
# Do not add reserved identifiers to binder, crossref, or datacite queues
# When the identifier entry is updated to not be reserved, then the various
# external services will be called as appropriate.
# See https://github.com/CDLUC3/ezid/blob/v2.0.6/impl/backproc.py#L117 for
# historical implementation
if not si_model.isReserved:
if updateExternalServices:
queue_model_list.extend(
(
ezidapp.models.async_queue.BinderQueue,
ezidapp.models.async_queue.CrossrefQueue,
ezidapp.models.async_queue.DataciteQueue,
)
)
)
for queue_model in queue_model_list:
_enqueue_identifier(queue_model, ref_id_model, operation_label)

Expand Down
3 changes: 2 additions & 1 deletion impl/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ def tombstone(request):
c2 = lxml.etree.SubElement(row, "td", attrib={"class": "dcms_value"})
c2.text = status
root.append(row)
md = lxml.etree.tostring(root)
# lxml tostring returns bytes
md = lxml.etree.tostring(root).decode()
if not htmlMode:
# This echoes the Merritt hack above.
if m["_profile"] == "erc" and m.get("erc", "").strip() != "":
Expand Down

0 comments on commit 6791b6c

Please sign in to comment.