This commit is contained in:
voje 2019-03-24 13:44:47 +01:00
parent e599740ac9
commit 77c599dded

View File

@ -104,7 +104,6 @@ if __name__ == "__main__":
collection_name="ssj" collection_name="ssj"
) )
sys.exit()
# parse kres # parse kres
logger.info("Parsing Kres: {}".format(args.ssj_file)) logger.info("Parsing Kres: {}".format(args.ssj_file))
kres_parser = Parser( kres_parser = Parser(
@ -116,7 +115,7 @@ if __name__ == "__main__":
kres_to_json_files(kres_parser.sentence_generator(), args.outdir) kres_to_json_files(kres_parser.sentence_generator(), args.outdir)
elif args.output == "db": elif args.output == "db":
data_to_valdb( data_to_valdb(
ssj_parser.sentence_generator(), kres_parser.sentence_generator(),
args.dbaddr, args.dbaddr,
args.dbuser, args.dbuser,
args.dbpass, args.dbpass,