Skip to content

Commit

Permalink
fix: if term.lang was none, was setting _id to empty
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Jun 13, 2024
1 parent 359f095 commit 7bf7869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arches/app/models/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def get_documents_to_index(self, fetchTiles=True, datatype_factory=None, node_da
for index, term in enumerate(node_terms):
terms.append(
{
"_id": str(nodeid) + str(tile.tileid) + str(index) + term.lang if hasattr(term, "lang") else "",
"_id": str(nodeid) + str(tile.tileid) + str(index) + (term.lang if hasattr(term, "lang") else ""),
"_source": {
"value": term.value if hasattr(term, "value") else term,
"nodeid": nodeid,
Expand Down

0 comments on commit 7bf7869

Please sign in to comment.