From 4267bcb915b88f84338a8481974e5a5ae7361ee8 Mon Sep 17 00:00:00 2001 From: James Miller Date: Mon, 20 Apr 2020 22:21:56 -0500 Subject: [PATCH] fix data in feats.yaml: remove "feat: " blocks in name --- gendb/gendb.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gendb/gendb.py b/gendb/gendb.py index 1f2be1e..6d50860 100644 --- a/gendb/gendb.py +++ b/gendb/gendb.py @@ -158,6 +158,11 @@ def do_heritages(data, conn): c.execute(stmt, (j['name'], j['descr'], rowid[0])) conn.commit() + if j['feat'] != None: + print("We have a feat that is not equal to none: {}".format(j['feat'])) + print("TODO THIS NEEDS TO GET DONE AFTER FEATS ARE IN SQL") + # i.e. TODO select feat_id where name = j['feat] then insert into a heritages_feats table + def do_ancestries(data, conn): # create tables