From: Eevee Date: Mon, 11 Apr 2011 01:51:03 +0000 (-0700) Subject: Fix a misuse of a set as a dictionary in db loading. X-Git-Tag: veekun-promotions/2011041102^0 X-Git-Url: http://git.veekun.com/zzz-pokedex.git/commitdiff_plain/b82af79bb9da4c033e3891bba40e913e19393be3?hp=43d857b9ea43ccee6ec41c2ddbd79c8bef40cb3d Fix a misuse of a set as a dictionary in db loading. --- 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()