From 18fb797fc92499830e6d5273dc06d77ca1472aba Mon Sep 17 00:00:00 2001 From: Alexander Polynomdivision Date: Tue, 2 Oct 2018 13:10:10 +0200 Subject: [PATCH] fix: Remove the sys.exit() --- scripts/csv_vocab_to_mongo.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/csv_vocab_to_mongo.py b/scripts/csv_vocab_to_mongo.py index 53aa526..ebe0805 100644 --- a/scripts/csv_vocab_to_mongo.py +++ b/scripts/csv_vocab_to_mongo.py @@ -90,8 +90,8 @@ def csv_to_vocab(filename, type, from_id): if (row[5] != ""): bedeutungen.append(row[5]) - latin["nominativ_a"] = endung_f - latin["nominativ_b"] = endung_n + latin["endung_f"] = endung_f + latin["endung_n"] = endung_n # TODO: Hints and mnemonics vocab.append({ @@ -130,8 +130,6 @@ adj, last_id = csv_to_vocab("Adjektive.csv", TYPE_ADJECTIVES, last_id) vocab += adj id = last_id -sys.exit(1) - # Connect to the database log("Inserting vocabulary into database") log("Connecting...", tabs=1)