diff --git a/src/caoscrawler/identifiable_adapters.py b/src/caoscrawler/identifiable_adapters.py index 27332e768246ff4e93b5b44243da25c1e869a729..acbc19526465de9382bcabb4be041d1f6347677b 100644 --- a/src/caoscrawler/identifiable_adapters.py +++ b/src/caoscrawler/identifiable_adapters.py @@ -101,7 +101,10 @@ class IdentifiableAdapter(metaclass=ABCMeta): if ident.record_type is not None: query_string += ident.record_type for ref in ident.backrefs: - query_string += (" WHICH IS REFERENCED BY " + str(ref) + " AND") + eid = ref + if isinstance(ref, db.Entity): + eid = ref.id + query_string += (" WHICH IS REFERENCED BY " + str(eid) + " AND") query_string += " WITH "