mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Fix a misuse of a set as a dictionary in db loading.
This commit is contained in:
parent
b652c49b80
commit
36fa8b7093
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ def load(session, tables=[], directory=None, drop_tables=False, verbose=False, s
|
||||||
session.connection().execute(
|
session.connection().execute(
|
||||||
insert_stmt.values(**row_data)
|
insert_stmt.values(**row_data)
|
||||||
)
|
)
|
||||||
seen_ids[row_data['id']] = 1
|
seen_ids.add(row_data['id'])
|
||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
print_done()
|
print_done()
|
||||||
|
|
Loading…
Reference in a new issue