From e07d0c8f4031532bd6f0db6e0947c78808fc8769 Mon Sep 17 00:00:00 2001 From: jgenero Date: Tue, 18 Oct 2022 11:18:36 +0200 Subject: [PATCH] remove table duke --- app/cmd/db.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/cmd/db.py b/app/cmd/db.py index e01f479..601100f 100644 --- a/app/cmd/db.py +++ b/app/cmd/db.py @@ -167,16 +167,6 @@ def _create_indiv(): for data in tqdm(individuals, desc="Populating Individual..."): Individual.create(**data) -def _create_duke(): - dukes = [] - for info in __indiv_infos("prince"): - indiv_query = [t.id_indiv for t in Individual.select().where( - Individual.name_indiv == info[0])] - dukes.append({"house": info[2], "indiv_duke": indiv_query[0], - "birth": info[3], "reign": info[4], "death": info[4]}) - for data in tqdm(dukes, desc="Populating Duke..."): - Duke.create(**data) - def _create_produced_by(xml_file: str, folder: str): princes_actes = [] for acte in os.listdir(folder):