From bf1044a9cee3baa06f80d600ef2fc67e4741039e Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Fri, 30 Mar 2018 14:41:25 -0700 Subject: [PATCH] undo the table.create(bind=engine) change --- pokedex/db/load.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pokedex/db/load.py b/pokedex/db/load.py index 81eca0d..e11b2b2 100644 --- a/pokedex/db/load.py +++ b/pokedex/db/load.py @@ -180,7 +180,7 @@ def load(session, tables=[], directory=None, drop_tables=False, verbose=False, s print_start('Creating tables') for n, table in enumerate(table_objs): - table.create(bind=engine) + table.create() print_status('%s/%s' % (n, len(table_objs))) print_done() @@ -312,7 +312,6 @@ def load(session, tables=[], directory=None, drop_tables=False, verbose=False, s # Remembering some zillion rows in the session consumes a lot of # RAM. Let's not do that. Commit every 1000 rows if len(new_rows) >= 1000: - print("flushing") insert_and_commit() insert_and_commit()