Fix d/g attribute error

This commit is contained in:
Cyber MacGeddon 2026-02-16 13:33:31 +00:00
parent 00c1ca681b
commit e6d6c67309

View file

@ -221,7 +221,8 @@ class Processor(TriplesQueryService):
limit=query.limit
)
for t in resp:
g = t.g if hasattr(t, 'g') else DEFAULT_GRAPH
# Note: quads_by_collection uses 'd' for graph field
g = t.d if hasattr(t, 'd') else DEFAULT_GRAPH
otype, dtype, lang = get_o_metadata(t)
quads.append((t.s, t.p, t.o, g, otype, dtype, lang))