aboutsummaryrefslogtreecommitdiff
path: root/backend/data
diff options
context:
space:
mode:
Diffstat (limited to 'backend/data')
-rwxr-xr-xbackend/data/genDbpData.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/data/genDbpData.py b/backend/data/genDbpData.py
index c43ad86..1dce001 100755
--- a/backend/data/genDbpData.py
+++ b/backend/data/genDbpData.py
@@ -208,7 +208,7 @@ for (name, iri) in nodeToIri.items():
row = dbpCur.execute("SELECT target FROM redirects where iri = ?", (iri,)).fetchone()
if row != None:
nodeToIri[name] = row[0]
- redirectingIriSet.add(iri)
+ redirectingIriSet.add(name)
# Find descriptions, and add to db
print("Adding node description data")
dbCur.execute("CREATE TABLE descs (name TEXT PRIMARY KEY, desc TEXT, redirected INT)")