From 155b2e93b0f1a457b6db7c4726d41273f0250720 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Mon, 13 Oct 2008 23:09:27 +0100 Subject: [PATCH] p134 - updated CliFpdb for new importer --- pyfpdb/CliFpdb.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pyfpdb/CliFpdb.py b/pyfpdb/CliFpdb.py index e79a9d49..75dd1251 100755 --- a/pyfpdb/CliFpdb.py +++ b/pyfpdb/CliFpdb.py @@ -54,5 +54,12 @@ if __name__ == "__main__": (options, sys.argv) = parser.parse_args() settings={'imp-callFpdbHud':False, 'db-backend':2} - importer = fpdb_import.Importer(options,settings) - importer.import_file_dict() + settings['db-host']=options.server + settings['db-user']=options.user + settings['db-password']=options.password + settings['db-databaseName']=options.database + settings['handCount']=options.handCount + + importer = fpdb_import.Importer(options, settings) + importer.addImportFile(options.inputFile) + importer.runImport()