files loaded now in database

This commit is contained in:
2019-08-21 11:12:38 +02:00
parent 8cca761b91
commit 2018745d52
2 changed files with 17 additions and 2 deletions

View File

@@ -43,7 +43,10 @@ def main(args):
match_store = MatchStore(args, database)
word_stats = WordStats(lemma_msds, database)
for words in load_files(args):
for words in load_files(args, database):
if words is None:
continue
matches = match_file(words, structures)
match_store.add_matches(matches)
word_stats.add_words(words)