X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/0044b9932549d6d52e5e5690c2f8972acdf00c47..d2880d4f03e6192e08f6a9eb70c485027de0fe8a:/pokedex/db/load.py?ds=sidebyside diff --git a/pokedex/db/load.py b/pokedex/db/load.py index 5740f42..d307fd8 100644 --- a/pokedex/db/load.py +++ b/pokedex/db/load.py @@ -295,7 +295,7 @@ def load(session, tables=[], directory=None, drop_tables=False, verbose=False, s session.connection().execute( insert_stmt.values(**row_data) ) - seen_ids[row_data['id']] = 1 + seen_ids.add(row_data['id']) session.commit() print_done()