Add non-searchable tags #1612
Annotations
2 errors
Run tests:
invenio_vocabularies/contrib/names/services.py#L1
Black format check
--- /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/names/services.py 2024-10-22 06:51:11.071871+00:00
+++ /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/names/services.py 2024-10-22 06:57:26.897152+00:00
@@ -39,11 +39,11 @@
# the loading process needs to make sure of that
if many:
results = self._read_many(identity, search_query)
else:
results = self._read_many(identity, search_query, max_records=1)
-
+
# cant use the results_item because it returns dicts intead of records
total = results.hits.total["value"]
if total == 0:
# Not a PID but trated as such
raise PIDDoesNotExistError(pid_type=id_type, pid_value=id_)
|
Run tests
Process completed with exit code 1.
|
Loading