From c3a10a845a03e994642f6e7b95ebedafdf81f17c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com>
Date: Mon, 5 Feb 2024 21:54:15 +0100
Subject: [PATCH] FIX: datatype in replace_name_with...

---
 src/caoscrawler/crawl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py
index 79fd72b0..f31d66a9 100644
--- a/src/caoscrawler/crawl.py
+++ b/src/caoscrawler/crawl.py
@@ -936,7 +936,7 @@ class Crawler(object):
                 if isinstance(el, str):
                     try:
                         # the get_entity function will raise an error if not unique
-                        propval.append(Crawler._get_property_id_for_datatype(rtname=prop.datatype,
+                        propval.append(Crawler._get_property_id_for_datatype(rtname=dt,
                                                                              name=el))
                     except (db.EmptyUniqueQueryError, db.QueryNotUniqueError):
                         logger.error(
-- 
GitLab