pass an explicit bind to table.create()

This isn't really necessary, since pokedex.db.connect sets
metadata.bind, but it's better to be explicit.
This commit is contained in:
Andrew Ekstedt 2018-03-30 15:05:30 -07:00
parent 417bd1afa2
commit 0c61702213
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,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()
table.create(bind=engine)
print_status('%s/%s' % (n, len(table_objs)))
print_done()