diff --git a/src/wani.py b/src/wani.py index 3ba75a5..364ccc4 100644 --- a/src/wani.py +++ b/src/wani.py @@ -47,6 +47,7 @@ def main(args): matches = match_file(words, structures) match_store.add_matches(matches) word_stats.add_words(words) + database.commit() # force a bit of garbage collection del words @@ -55,7 +56,6 @@ def main(args): # if no output files, just exit if all([x == None for x in [args.out, args.out_no_stat, args.all, args.stats]]): - database.commit() return # get word renders for lemma/msd