awards: fix description field and mappings #1661
Annotations
2 errors
Run tests:
invenio_vocabularies/contrib/awards/datastreams.py#L1
Black format check
--- /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/awards/datastreams.py 2024-11-23 20:44:28.191251+00:00
+++ /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/awards/datastreams.py 2024-11-23 20:49:36.461226+00:00
@@ -120,13 +120,11 @@
if "startDate" in record:
award["start_date"] = record["startDate"]
if "endDate" in record:
award["end_date"] = record["endDate"]
if "summary" in record:
- award["description"] = {
- "en": record["summary"]
- }
+ award["description"] = {"en": record["summary"]}
stream_entry.entry = award
return stream_entry
|
Run tests
Process completed with exit code 1.
|
Loading