scripts: Fix issues with the csv_vocab_to_mongo script

This commit is contained in:
Alexander Polynomdivision 2018-10-03 19:10:15 +02:00
parent 4a3aa60a4d
commit 3b3576ec42

View File

@ -7,7 +7,7 @@ import pymongo
TYPE_NOUNS = 0 TYPE_NOUNS = 0
TYPE_VERBS = 1 TYPE_VERBS = 1
TYPE_ADJECTIVES = 2 TYPE_ADJECTIVES = 2
TYPE_ADVERB = 3 TYPE_ADVERBS = 3
PATH_TO_VOCAB = "../data/vocab" PATH_TO_VOCAB = "../data/vocab"
@ -93,7 +93,7 @@ def csv_to_vocab(filename, type, from_id):
latin["endung_f"] = endung_f latin["endung_f"] = endung_f
latin["endung_n"] = endung_n latin["endung_n"] = endung_n
elif (type == TYPE_ADVERB): elif (type == TYPE_ADVERBS):
# Adverb # Adverb
bedeutungen = [row[1]] bedeutungen = [row[1]]
if (row[2] != ""): if (row[2] != ""):